diff options
Diffstat (limited to 'abs/core')
-rw-r--r-- | abs/core/x264/PKGBUILD | 45 |
1 files changed, 25 insertions, 20 deletions
diff --git a/abs/core/x264/PKGBUILD b/abs/core/x264/PKGBUILD index 4c986ee..e44493d 100644 --- a/abs/core/x264/PKGBUILD +++ b/abs/core/x264/PKGBUILD @@ -1,35 +1,40 @@ -# $Id: PKGBUILD 163164 2012-07-08 09:35:20Z ibiru $ -# Maintainer : Ionut Biru <ibiru@archlinux.org> +# $Id$ +# Maintainer: Ionut Biru <ibiru@archlinux.org> +# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org> # Contributor: damir <damir@archlinux.org> # Contributor: Paul Mattal <paul@archlinux.org> pkgname=x264 -pkgver=20120705 +pkgver=142.20140311 pkgrel=1 -pkgdesc="free library for encoding H264/AVC video streams" +epoch=1 +pkgdesc='Library for encoding H264/AVC video streams' arch=('i686' 'x86_64') -url="http://www.videolan.org/developers/x264.html" +url='http://www.videolan.org/developers/x264.html' license=('GPL') depends=('glibc') -makedepends=('yasm') -source=(ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-$pkgver-2245-stable.tar.bz2) -md5sums=('81e5bec5d5774a4a3f567f14bd94289c') +makedepends=('yasm' 'git') +source=(git://git.videolan.org/x264.git#commit=aff928d2) +md5sums=('SKIP') + +pkgver() { + cd $pkgname + local _ver=$(grep '#define X264_BUILD' x264.h | cut -d' ' -f3) + local _date=$(git log -1 --format="%cd" --date=short | tr -d -) + + echo ${_ver}.${_date} +} build() { - cd "$pkgname-snapshot-$pkgver-2245-stable" + cd $pkgname - ./configure --enable-shared + ./configure --prefix=/usr \ + --enable-shared \ + --enable-pic - make + make } -package() { - cd "$pkgname-snapshot-$pkgver-2245-stable" - make DESTDIR="$pkgdir" \ - bindir=/usr/bin \ - libdir=/usr/lib \ - includedir=/usr/include \ - install +package() { + make -C $pkgname DESTDIR="$pkgdir" install } - -# vim:set ts=2 sw=2 et: |