summaryrefslogtreecommitdiff
path: root/extra/x264/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/x264/PKGBUILD')
-rw-r--r--extra/x264/PKGBUILD22
1 files changed, 15 insertions, 7 deletions
diff --git a/extra/x264/PKGBUILD b/extra/x264/PKGBUILD
index 6f6b9ff5c..fe2a489d1 100644
--- a/extra/x264/PKGBUILD
+++ b/extra/x264/PKGBUILD
@@ -1,21 +1,30 @@
-# $Id: PKGBUILD 201499 2013-12-13 07:56:25Z bpiotrowski $
+# $Id: PKGBUILD 208912 2014-03-28 15:46:25Z bpiotrowski $
# Maintainer: Ionut Biru <ibiru@archlinux.org>
-# Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
+# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: damir <damir@archlinux.org>
# Contributor: Paul Mattal <paul@archlinux.org>
pkgname=x264
-pkgver=20131030
-pkgrel=2
+pkgver=142.20140311
+pkgrel=1
+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=c628e3bac)
+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
@@ -27,6 +36,5 @@ build() {
}
package() {
- cd $pkgname
- make DESTDIR="$pkgdir" install
+ make -C $pkgname DESTDIR="$pkgdir" install
}