From 6085abd4119deccd1cfde0432d7309ebe9552958 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Sun, 4 May 2014 20:42:51 +0000 Subject: x264: update to 142.20140311 --- abs/core/x264/PKGBUILD | 45 +++++++++++++++++++++++++-------------------- 1 file 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 +# $Id$ +# Maintainer: Ionut Biru +# Maintainer: Bartłomiej Piotrowski # Contributor: damir # Contributor: Paul Mattal 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: -- cgit v0.12