mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
extra/x264 to 20130702-1
This commit is contained in:
parent
78ca4b29d3
commit
45d8350e17
1 changed files with 26 additions and 14 deletions
|
@ -7,7 +7,7 @@
|
||||||
# - configure needs --disable-asm to build on ARM
|
# - configure needs --disable-asm to build on ARM
|
||||||
|
|
||||||
pkgname=x264
|
pkgname=x264
|
||||||
pkgver=20130206
|
pkgver=20130702
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="free library for encoding H264/AVC video streams"
|
pkgdesc="free library for encoding H264/AVC video streams"
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
|
@ -15,24 +15,36 @@ url="http://www.videolan.org/developers/x264.html"
|
||||||
license=('GPL')
|
license=('GPL')
|
||||||
depends=('glibc')
|
depends=('glibc')
|
||||||
makedepends=('yasm' 'git')
|
makedepends=('yasm' 'git')
|
||||||
source=(ftp://ftp.archlinux.org/other/packages/$pkgname/$pkgname-$pkgver.tar.xz)
|
source=(git://git.videolan.org/x264.git#commit=585324fee3)
|
||||||
md5sums=('f952248492745a077ad6a77465276166')
|
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() {
|
build() {
|
||||||
cd $pkgname
|
cd $pkgname
|
||||||
|
|
||||||
./configure --enable-shared --disable-asm
|
./configure --enable-shared \
|
||||||
|
--enable-pic \
|
||||||
make
|
$_asm
|
||||||
|
make
|
||||||
}
|
}
|
||||||
package() {
|
|
||||||
cd $pkgname
|
|
||||||
|
|
||||||
make DESTDIR="$pkgdir" \
|
package() {
|
||||||
bindir=/usr/bin \
|
cd $pkgname
|
||||||
libdir=/usr/lib \
|
|
||||||
includedir=/usr/include \
|
make DESTDIR="$pkgdir" \
|
||||||
install
|
bindir=/usr/bin \
|
||||||
|
libdir=/usr/lib \
|
||||||
|
includedir=/usr/include \
|
||||||
|
install
|
||||||
}
|
}
|
||||||
|
|
||||||
# vim:set ts=2 sw=2 et:
|
# vim:set ts=2 sw=2 et:
|
||||||
|
|
Loading…
Reference in a new issue