summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCedric Girard2016-12-01 18:05:46 +0100
committerCedric Girard2016-12-01 18:05:46 +0100
commit9981270eb60521d5aa6d15a65b4cebe1fe1e0a16 (patch)
treed4f3b389ae77813e45cbb1e77dd7cb014592c805
parent2019782e9485946819911beed8bc09555e9ab97e (diff)
downloadaur-9981270eb60521d5aa6d15a65b4cebe1fe1e0a16.tar.gz
correct pkgver function
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD4
2 files changed, 3 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index eda79fca3e6..b3d55136ce6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = libcec-git
pkgdesc = Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter
- pkgver = 3.1.0.25.g62b8520
+ pkgver = 4.0.0.3.r0.g209884d
pkgrel = 1
epoch = 1
url = https://github.com/Pulse-Eight/libcec
diff --git a/PKGBUILD b/PKGBUILD
index 87b9ce2f6de..1c1a8923758 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=libcec-git
epoch=1
-pkgver=3.1.0.25.g62b8520
+pkgver=4.0.0.3.r0.g209884d
pkgrel=1
pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter"
arch=('i686' 'x86_64')
@@ -18,7 +18,7 @@ md5sums=('SKIP')
pkgver() {
cd "$srcdir"/libcec
- git describe --tags | sed 's|libcec-||;s|-|.|g'
+ git describe --long --tags | sed 's!^libcec-!!;s!\([^-]*-g\)!r\1!;s!-!.!g'
}
build() {