summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Arndt2016-04-08 16:55:34 +0200
committerChristopher Arndt2016-04-08 16:55:34 +0200
commit57351a4cd6d7b69b85d13d5cfe45225cf689dcc6 (patch)
tree1b237b8ca33d642c862b35f133f7eaf38da64f61
parente4226652d30b3ddd1ee8915d39bbb86176ca439d (diff)
downloadaur-57351a4cd6d7b69b85d13d5cfe45225cf689dcc6.tar.gz
Adapted pkgver function again
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD8
2 files changed, 6 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4a93c41425e..1530fcf96d8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
# Generated by mksrcinfo v8
-# Sat Apr 2 23:03:56 UTC 2016
+# Fri Apr 8 14:55:07 UTC 2016
pkgbase = hydrogen-git
pkgdesc = An advanced drum machine - git version
- pkgver = 0.9.7.beta2.r2541.3187d9b
+ pkgver = 0.9.7.beta2.r2544.1ab9bf5
pkgrel = 1
url = https://github.com/hydrogen-music/hydrogen
install = hydrogen.install
diff --git a/PKGBUILD b/PKGBUILD
index 61c6819a93b..e30f2ebeff5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=hydrogen-git
_pkgname=hydrogen
-pkgver=0.9.7.beta2.r2541.3187d9b
+pkgver=0.9.7.beta2.r2544.1ab9bf5
pkgrel=1
pkgdesc="An advanced drum machine - git version"
arch=('i686' 'x86_64')
@@ -21,9 +21,9 @@ md5sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
- version="$(git describe --tags | sed -e 's/-/./')"
- revision=$(git rev-list --count HEAD)
- hash=$(git rev-parse --short HEAD)
+ local version="$(git describe --tags | sed -e 's/-[^-]*-[^-]*$//;s/-/./g')"
+ local revision=$(git rev-list --count HEAD)
+ local hash=$(git rev-parse --short HEAD)
echo $version.r$revision.$hash
}