extra/x264 to 142.20140826-1

This commit is contained in:
Kevin Mihelich 2014-09-07 14:35:13 +00:00
parent b3055246ed
commit f6ec8ccdd3

View file

@ -8,15 +8,15 @@
# - configure needs --disable-asm to build on ARM # - configure needs --disable-asm to build on ARM
pkgname=('x264' 'libx264' 'libx264-10bit') pkgname=('x264' 'libx264' 'libx264-10bit')
pkgver=142.20140311 pkgver=142.20140826
pkgrel=6 pkgrel=1
epoch=1 epoch=1
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
url='http://www.videolan.org/developers/x264.html' url='http://www.videolan.org/developers/x264.html'
license=('GPL') license=('GPL')
depends=('glibc') depends=('glibc')
makedepends=('yasm' 'git' 'ffmpeg') makedepends=('yasm' 'git' 'ffmpeg')
source=(git://git.videolan.org/x264.git#commit=b7a50c16) source=(git://git.videolan.org/x264.git#commit=021c0dc6c95c)
md5sums=('SKIP') md5sums=('SKIP')
pkgver() { pkgver() {
@ -28,7 +28,6 @@ pkgver() {
} }
prepare() { prepare() {
sed -i 's/install-lib-dev$//g' $pkgname/Makefile
cp -r $pkgname $pkgname-10bit cp -r $pkgname $pkgname-10bit
} }
@ -48,17 +47,20 @@ build() {
package_x264() { package_x264() {
pkgdesc='CLI tools for encoding H264/AVC video streams' pkgdesc='CLI tools for encoding H264/AVC video streams'
depends=('glibc' 'ffmpeg') depends=('glibc' 'ffmpeg')
provides=('x264-dev' 'x264-10bit') provides=('x264-10bit')
conflicts=('x264-dev' 'x264-10bit') conflicts=('x264-10bit')
replaces=('x264-dev' 'x264-10bit') replaces=('x264-10bit')
make -C $pkgbase DESTDIR="$pkgdir" install-cli install-lib-dev make -C $pkgbase DESTDIR="$pkgdir" install-cli
install -Dm755 $pkgbase-10bit/x264 "$pkgdir"/usr/bin/x264-10bit install -Dm755 $pkgbase-10bit/x264 "$pkgdir"/usr/bin/x264-10bit
} }
package_libx264() { package_libx264() {
pkgdesc='Library for encoding H264/AVC video streams' pkgdesc='Library for encoding H264/AVC video streams'
depends=('glibc') depends=('glibc')
provides=('x264-dev')
conflicts=('x264-dev')
replaces=('x264-dev')
install -d "$pkgdir"/usr/lib install -d "$pkgdir"/usr/lib
make -C $pkgbase DESTDIR="$pkgdir" install-lib-shared make -C $pkgbase DESTDIR="$pkgdir" install-lib-shared
@ -67,8 +69,8 @@ package_libx264() {
package_libx264-10bit() { package_libx264-10bit() {
pkgdesc='Library for encoding H264/AVC video streams. 10bit-depth.' pkgdesc='Library for encoding H264/AVC video streams. 10bit-depth.'
depends=('glibc') depends=('glibc')
provides=('libx264') provides=('libx264' 'x264-dev')
conflicts=('libx264') conflicts=('libx264' 'x264-dev')
install -d "$pkgdir"/usr/lib install -d "$pkgdir"/usr/lib
make -C $pkgbase-10bit DESTDIR="$pkgdir" install-lib-shared make -C $pkgbase-10bit DESTDIR="$pkgdir" install-lib-shared