Commit dc82cdd3 authored by Booloki's avatar Booloki

First CI commit for ccextractor build

parents
Pipeline #329 passed with stage
in 1 minute and 58 seconds
stages:
- build
## Stage for Arch Linux packaging build
build:
stage: build
image: archlinux/base:latest
tags:
- archlinux
only:
- master
- schedules
script:
# Use local repository mirror
- echo 'Server = http://miroir.lan/archlinux/$repo/os/$arch' > /etc/pacman.d/mirrorlist
# Update env
- pacman -Syu --noconfirm -q
# Dependencies install
- pacman -S --noconfirm -q git base-devel sudo pacman-contrib libglvnd
# Need dedicated user for building
- useradd builduser -m # Create the builduser
- passwd -d builduser # Delete the buildusers password
- printf 'builduser ALL=(ALL) ALL\n' | tee -a /etc/sudoers # Allow the builduser passwordless sudo
# Package build
- sudo -u builduser bash -c "makepkg -s --noconfirm"
- mkdir build
# Provides packages
- mv *.pkg.tar.xz build/
artifacts:
name: "$CI_JOB_STAGE"
paths:
- build/*
# Maintainer : Nicolas Perrin <booloki@lokizone.net>
# Contributor: Chris Clonch <chris at theclonchs dot com>
# Contributor: Nathan Owe <ndowens04 at gmail>
# Contributor: Chris Allison <daemon@cca.me.uk>
# Current source for PKGBUILD can be found at
# https://github.com/cacack/pkgbuilds/tree/master/ccextractor
pkgname=ccextractor
pkgver=0.87
pkgrel=1
pkgdesc="A fast closed captions extractor for MPEG files."
arch=('i686' 'x86_64')
url="http://www.ccextractor.org"
license=('GPL')
depends=('gcc-libs' 'tesseract')
source=(
https://github.com/CCExtractor/ccextractor/archive/v$pkgver.tar.gz
)
sha512sums=('adc421dadc844c5708bd8a15d07bca9cece8d381515a5a2f7ebaca1b95a128d083de6a6cfaa695a89dc3bcb81e0e457a959be072a9b1cd2c268a5138a93a0a11')
build() {
cd "$srcdir/$pkgname-$pkgver/linux"
./build
}
package() {
cd "$srcdir/$pkgname-$pkgver/linux"
install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
}
# vim:set ts=2 sw=2 et:
# aur-ccextractor
Continuous Integration for AUR **ccextractor** package.
https://aur.archlinux.org/packages/ccextractor/
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment