extra/x264 to 20130702-1

This commit is contained in:
Kevin Mihelich 2013-08-01 13:02:31 +00:00
parent 78ca4b29d3
commit 45d8350e17

View file

@ -7,7 +7,7 @@
# - configure needs --disable-asm to build on ARM
pkgname=x264
pkgver=20130206
pkgver=20130702
pkgrel=1
pkgdesc="free library for encoding H264/AVC video streams"
arch=('i686' 'x86_64')
@ -15,24 +15,36 @@ url="http://www.videolan.org/developers/x264.html"
license=('GPL')
depends=('glibc')
makedepends=('yasm' 'git')
source=(ftp://ftp.archlinux.org/other/packages/$pkgname/$pkgname-$pkgver.tar.xz)
md5sums=('f952248492745a077ad6a77465276166')
source=(git://git.videolan.org/x264.git#commit=585324fee3)
md5sums=('SKIP')
[[ "$CARCH" == "i686" ]] && _asm='--disable-asm'
[[ "$CARCH" == "arm" ]] && _asm='--disable-asm'
[[ "$CARCH" == "armv6h" ]] && _asm='--disable-asm'
[[ "$CARCH" == "armv7h" ]] && _asm='--disable-asm'
pkgver() {
cd $pkgname
git log -1 --format="%cd" --date=short | sed 's|-||g'
}
build() {
cd $pkgname
cd $pkgname
./configure --enable-shared --disable-asm
make
./configure --enable-shared \
--enable-pic \
$_asm
make
}
package() {
cd $pkgname
make DESTDIR="$pkgdir" \
bindir=/usr/bin \
libdir=/usr/lib \
includedir=/usr/include \
install
package() {
cd $pkgname
make DESTDIR="$pkgdir" \
bindir=/usr/bin \
libdir=/usr/lib \
includedir=/usr/include \
install
}
# vim:set ts=2 sw=2 et: