summaryrefslogtreecommitdiffstats
path: root/abs/core/x264
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-05-04 20:42:51 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-05-04 20:42:51 (GMT)
commit6085abd4119deccd1cfde0432d7309ebe9552958 (patch)
treed5cfca3ae29b20238cdb3f52e7fa1735d3cd5c60 /abs/core/x264
parentc4a7f47bcb488c4a2d1fe5fa047f4b42d0f4ce4a (diff)
downloadlinhes_pkgbuild-6085abd4119deccd1cfde0432d7309ebe9552958.zip
linhes_pkgbuild-6085abd4119deccd1cfde0432d7309ebe9552958.tar.gz
linhes_pkgbuild-6085abd4119deccd1cfde0432d7309ebe9552958.tar.bz2
x264: update to 142.20140311
Diffstat (limited to 'abs/core/x264')
-rw-r--r--abs/core/x264/PKGBUILD45
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: