From 991a591c7b20f14e2b954d3b0b2bcd6a028f68d2 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Tue, 7 Feb 2017 13:26:45 +0000 Subject: x264: update to 148.20160920 --- abs/core/x264/PKGBUILD | 56 +++++++++++++++++++++++++++++--------------------- 1 file changed, 33 insertions(+), 23 deletions(-) diff --git a/abs/core/x264/PKGBUILD b/abs/core/x264/PKGBUILD index b3c6a71..061ee76 100644 --- a/abs/core/x264/PKGBUILD +++ b/abs/core/x264/PKGBUILD @@ -1,12 +1,12 @@ # $Id$ -# Maintainer: Ionut Biru -# Maintainer: Bartłomiej Piotrowski -# Maintainer: Maxime Gauduin +# Maintainer: Maxime Gauduin +# Contributor: Ionut Biru +# Contributor: Bartłomiej Piotrowski # Contributor: damir # Contributor: Paul Mattal pkgname=('x264' 'libx264' 'libx264-10bit') -pkgver=148.20150725 +pkgver=148.20160920 pkgrel=1 epoch=2 arch=('i686' 'x86_64') @@ -14,12 +14,13 @@ url='http://www.videolan.org/developers/x264.html' license=('GPL') depends=('glibc') makedepends=('yasm' 'git' 'ffmpeg' 'l-smash') -_commit=73ae2d11d472d0eb3b7c218dc1659db32f649b14 -source=(git://git.videolan.org/x264.git#commit=${_commit}) -md5sums=('SKIP') +_commit='86b71982e131eaa70125f8d0e725fcade9c4c677' +source=("git://git.videolan.org/x264.git#commit=${_commit}") +sha256sums=('SKIP') pkgver() { - cd $pkgname + cd ${pkgbase} + local _ver=$(grep '#define X264_BUILD' x264.h | cut -d' ' -f3) local _date=$(git log -1 --format="%cd" --date=short | tr -d -) @@ -27,31 +28,38 @@ pkgver() { } prepare() { - cp -r $pkgname $pkgname-10bit + cp -r ${pkgbase} ${pkgbase}-10bit } build() { - cd $pkgname - ./configure --prefix=/usr \ - --enable-shared --enable-pic + cd ${pkgbase} + + ./configure \ + --prefix='/usr' \ + --enable-shared \ + --enable-pic make - cd ../$pkgname-10bit - ./configure --prefix=/usr \ - --enable-shared --enable-pic \ - --bit-depth=10 + cd ../${pkgbase}-10bit + + ./configure \ + --prefix='/usr' \ + --enable-shared \ + --enable-pic \ + --bit-depth='10' make } package_x264() { pkgdesc='CLI tools for encoding H264/AVC video streams' - depends=('ffmpeg' 'liblsmash.so') + depends+=('libavcodec.so' 'libavformat.so' 'libavutil.so' 'liblsmash.so' + 'libswscale.so') provides=('x264-10bit') conflicts=('x264-10bit') replaces=('x264-10bit') - make -C $pkgbase DESTDIR="$pkgdir" install-cli - install -Dm755 $pkgbase-10bit/x264 "$pkgdir"/usr/bin/x264-10bit + make -C ${pkgbase} DESTDIR="${pkgdir}" install-cli + install -m 755 ${pkgbase}-10bit/x264 "${pkgdir}"/usr/bin/x264-10bit } package_libx264() { @@ -60,8 +68,8 @@ package_libx264() { conflicts=('x264-dev') replaces=('x264-dev') - install -d "$pkgdir"/usr/lib - make -C $pkgbase DESTDIR="$pkgdir" install-lib-shared + install -dm 755 "${pkgdir}"/usr/lib + make -C ${pkgbase} DESTDIR="${pkgdir}" install-lib-shared } package_libx264-10bit() { @@ -69,6 +77,8 @@ package_libx264-10bit() { provides=('libx264.so' 'libx264' 'x264-dev') conflicts=('libx264' 'x264-dev') - install -d "$pkgdir"/usr/lib - make -C $pkgbase-10bit DESTDIR="$pkgdir" install-lib-shared + install -dm 755 "${pkgdir}"/usr/lib + make -C ${pkgbase}-10bit DESTDIR="${pkgdir}" install-lib-shared } + +# vim: ts=2 sw=2 et: -- cgit v0.12