Date: Thursday, June 5, 2014 @ 14:34:34 Author: bpiotrowski Revision: 214297
upgpkg: x264 1:142.20140311-4 Some applications (i.e. handbrake) in order to use 10bit depth, rely on "x264-10bit" binary. Let's install it with its 8bit counterpart via x264 package, but split libx264 to separated subpackages. This way user can easily encode 10bit videos without losing ability to play 8bit ones. Modified: x264/trunk/PKGBUILD ----------+ PKGBUILD | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2014-06-05 11:03:46 UTC (rev 214296) +++ PKGBUILD 2014-06-05 12:34:34 UTC (rev 214297) @@ -4,9 +4,9 @@ # Contributor: damir <[email protected]> # Contributor: Paul Mattal <[email protected]> -pkgname=('x264' 'x264-10bit' 'x264-dev') +pkgname=('x264' 'libx264' 'libx264-10bit') pkgver=142.20140311 -pkgrel=3 +pkgrel=4 epoch=1 arch=('i686' 'x86_64') url='http://www.videolan.org/developers/x264.html' @@ -43,26 +43,30 @@ } package_x264() { - pkgdesc='Library for encoding H264/AVC video streams' + pkgdesc='CLI tools for encoding H264/AVC video streams.' + depends=('glibc' 'libx264') + provides=('x264-dev' 'x264-10bit') + conflicts=('x264-dev' 'x264-10bit') + replaces=('x264-dev' 'x264-10bit') + + make -C $pkgbase DESTDIR="$pkgdir" install-cli install-lib-dev + install -Dm755 $pkgbase-10bit/x264 "$pkgdir"/usr/bin/x264-10bit +} + +package_libx264() { + pkgdesc='Library for encoding H264/AVC video streams.' depends=('glibc') install -d "$pkgdir"/usr/lib - make -C $pkgname DESTDIR="$pkgdir" install-cli install-lib-shared + make -C $pkgbase DESTDIR="$pkgdir" install-lib-shared } -package_x264-10bit() { +package_libx264-10bit() { pkgdesc='Library for encoding H264/AVC video streams. 10bit-depth.' depends=('glibc') - provides=('x264') - conflicts=('x264') + provides=('libx264') + conflicts=('libx264') install -d "$pkgdir"/usr/lib - make -C $pkgname DESTDIR="$pkgdir" install-cli install-lib-shared + make -C $pkgbase-10bit DESTDIR="$pkgdir" install-lib-shared } - -package_x264-dev() { - pkgdesc='Development files for library for encoding H264/AVC video streams' - depends=('x264') - - make -C $pkgbase DESTDIR="$pkgdir" install-lib-dev -}
