diff options
author | Britney Fransen <brfransen@gmail.com> | 2014-11-24 17:47:19 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2014-11-24 17:47:19 (GMT) |
commit | f1b7c28aac3092d06a621d099d8a1cb8b108f605 (patch) | |
tree | 49a5151cae55d878845a04615cc6c620c8ae754e /abs/core/x264 | |
parent | 280dbaf23257adbea88f1a9641279fe05ebfd76a (diff) | |
download | linhes_pkgbuild-f1b7c28aac3092d06a621d099d8a1cb8b108f605.zip linhes_pkgbuild-f1b7c28aac3092d06a621d099d8a1cb8b108f605.tar.gz linhes_pkgbuild-f1b7c28aac3092d06a621d099d8a1cb8b108f605.tar.bz2 |
x264: update to 142.20140826
Diffstat (limited to 'abs/core/x264')
-rw-r--r-- | abs/core/x264/PKGBUILD | 56 |
1 files changed, 45 insertions, 11 deletions
diff --git a/abs/core/x264/PKGBUILD b/abs/core/x264/PKGBUILD index e44493d..9da0ba7 100644 --- a/abs/core/x264/PKGBUILD +++ b/abs/core/x264/PKGBUILD @@ -4,17 +4,16 @@ # Contributor: damir <damir@archlinux.org> # Contributor: Paul Mattal <paul@archlinux.org> -pkgname=x264 -pkgver=142.20140311 -pkgrel=1 +pkgname=('x264' 'libx264' 'libx264-10bit') +pkgver=142.20140826 +pkgrel=2 epoch=1 -pkgdesc='Library for encoding H264/AVC video streams' arch=('i686' 'x86_64') url='http://www.videolan.org/developers/x264.html' license=('GPL') depends=('glibc') -makedepends=('yasm' 'git') -source=(git://git.videolan.org/x264.git#commit=aff928d2) +makedepends=('yasm' 'git' 'ffmpeg') +source=(git://git.videolan.org/x264.git#commit=021c0dc6c95c) md5sums=('SKIP') pkgver() { @@ -25,16 +24,51 @@ pkgver() { echo ${_ver}.${_date} } +prepare() { + cp -r $pkgname $pkgname-10bit +} + build() { cd $pkgname - ./configure --prefix=/usr \ - --enable-shared \ - --enable-pic + --enable-shared --enable-pic + make + cd ../$pkgname-10bit + ./configure --prefix=/usr \ + --enable-shared --enable-pic \ + --bit-depth=10 make } -package() { - make -C $pkgname DESTDIR="$pkgdir" install +package_x264() { + pkgdesc='CLI tools for encoding H264/AVC video streams' + depends=('glibc' 'ffmpeg') + 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 +} + +package_libx264() { + pkgdesc='Library for encoding H264/AVC video streams' + depends=('glibc') + provides=('x264-dev') + conflicts=('x264-dev') + replaces=('x264-dev') + + install -d "$pkgdir"/usr/lib + make -C $pkgbase DESTDIR="$pkgdir" install-lib-shared +} + +package_libx264-10bit() { + pkgdesc='Library for encoding H264/AVC video streams. 10bit-depth.' + depends=('glibc') + provides=('libx264' 'x264-dev') + conflicts=('libx264' 'x264-dev') + + install -d "$pkgdir"/usr/lib + make -C $pkgbase-10bit DESTDIR="$pkgdir" install-lib-shared } |