summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo Alvarez2016-08-27 11:53:17 +0200
committerGustavo Alvarez2016-08-27 11:53:17 +0200
commit1b2ea5af423cfc66492dd28b71ecf208cf8675a3 (patch)
tree946cb137a891b4f15a0901854b8b0c3000383faf
parentf9ccbd6012ea4c2fb6a18306fce83e0f4c2fb4d8 (diff)
downloadaur-1b2ea5af423cfc66492dd28b71ecf208cf8675a3.tar.gz
fix wrong pkgver() generation
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD4
2 files changed, 4 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a8c00f89e83..6ad30057731 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
# Generated by mksrcinfo v8
-# Sat Aug 27 09:14:38 UTC 2016
+# Sat Aug 27 09:52:47 UTC 2016
pkgbase = openh264-git
pkgdesc = Open Source H.264 Codec
- pkgver = 1.6.r4354.30328b8
+ pkgver = 1.6.0.r4354.30328b8
pkgrel = 1
url = http://www.openh264.org
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 08fa08f3b41..8c3255e6057 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Contributor: sekret, mail=$(echo c2VrcmV0QHBvc3Rlby5zZQo= | base64 -d)
pkgname=openh264-git
-pkgver=1.6.r4354.30328b8
+pkgver=1.6.0.r4354.30328b8
pkgrel=1
pkgdesc="Open Source H.264 Codec"
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
@@ -18,7 +18,7 @@ sha1sums=('SKIP')
pkgver() {
cd openh264
- _ver="$(cat Makefile | grep -m1 VERSION | grep -o "[[:digit:]]*" | paste -sd'.')"
+ _ver="$(cat codec/api/svc/codec_ver.h | grep -m3 -e 'OPENH264_MAJOR' -e 'OPENH264_MINOR' -e 'OPENH264_REVISION' | sed 's|OPENH264|OPENHTWOSIXFOUR|g' | grep -o "[[:digit:]]*" | paste -sd'.')"
echo "${_ver}.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}