[arch-commits] Commit in x264/trunk (PKGBUILD)

Bartłomiej Piotrowski bpiotrowski at nymeria.archlinux.org
Thu Mar 27 09:47:41 UTC 2014


    Date: Thursday, March 27, 2014 @ 10:47:40
  Author: bpiotrowski
Revision: 208805

upgpkg: x264 1:142.20140311-1

use a saner versioning scheme

Modified:
  x264/trunk/PKGBUILD

----------+
 PKGBUILD |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-03-27 09:45:06 UTC (rev 208804)
+++ PKGBUILD	2014-03-27 09:47:40 UTC (rev 208805)
@@ -5,8 +5,9 @@
 # Contributor: Paul Mattal <paul at archlinux.org>
 
 pkgname=x264
-pkgver=20140311
+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'
@@ -18,7 +19,10 @@
 
 pkgver() {
   cd $pkgname
-  git log -1 --format="%cd" --date=short | tr -d -
+  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() {




More information about the arch-commits mailing list