diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 41 |
1 files changed, 19 insertions, 22 deletions
@@ -1,39 +1,36 @@ -# Maintainer: sekret, mail=$(echo c2VrcmV0QHBvc3Rlby5zZQo= | base64 -d) -_pkgname=openh264 -pkgname=$_pkgname-git -pkgver=1.1.r2131.g30328b8 +# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com> +# Contributor: sekret, mail=$(echo c2VrcmV0QHBvc3Rlby5zZQo= | base64 -d) + +pkgname=openh264-git +pkgver=1.6.r4354.30328b8 pkgrel=1 pkgdesc="Open Source H.264 Codec" arch=('i686' 'x86_64' 'armv6h' 'armv7h') -url="http://www.openh264.org" +url='http://www.openh264.org' license=('BSD') -makedepends=('git' 'nasm') -provides=("$_pkgname") -conflicts=("$_pkgname") -source=("$_pkgname::git+https://github.com/cisco/openh264.git") -md5sums=('SKIP') +makedepends=('git' + 'nasm' + ) +provides=('openh264') +conflicts=('openh264') +source=('git+https://github.com/cisco/openh264.git') +sha1sums=('SKIP') pkgver() { - cd "$_pkgname" - git describe --long | sed -r 's/v//;s/([^-]*-g)/r\1/;s/-/./g' -} - -prepare() { - cd "$_pkgname" - sed -i 's/PREFIX=\/usr\/local/PREFIX=\/usr/g' Makefile + cd openh264 + _ver="$(cat Makefile | grep -m1 VERSION | grep -o "[[:digit:]]*" | paste -sd'.')" + echo "${_ver}.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" } build() { - cd "$_pkgname" - make + make -C openh264 PREFIX="/usr" } package() { - cd "$_pkgname" - make DESTDIR="$pkgdir/" install + cd openh264 + make DESTDIR="${pkgdir}" PREFIX="/usr" install install -Dm755 h264dec "$pkgdir/usr/bin/h264dec" install -Dm755 h264enc "$pkgdir/usr/bin/h264enc" install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } -# vim:set ts=2 sw=2 et: |