summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian 'Swift Geek' Grzywna2019-08-10 22:02:14 +0200
committerSebastian 'Swift Geek' Grzywna2019-08-10 22:03:06 +0200
commit934b41429ad496bd1ef8c77c1b334a30336af42a (patch)
tree223567fbea0141a60ab55ed64f6206a02873844c
parentc86b5aa3d9a321d04ec12d94809c6cbd5d0c8ea2 (diff)
downloadaur-934b41429ad496bd1ef8c77c1b334a30336af42a.tar.gz
Fix pkgver
-rw-r--r--PKGBUILD6
1 files changed, 2 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 69e276e8d13..d5c39d91381 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@
#PKGEXT='.pkg.tar.gz'
pkgname=osmocombb-git
pkgver=a
-pkgrel=3
+pkgrel=4
pkgdesc="An Free Software / Open Source GSM Baseband software implementation."
arch=('i686' 'x86_64')
url="http://bb.osmocom.org/"
@@ -25,9 +25,7 @@ md5sums=('SKIP' '94bb3ff0cdff13d7a8163c7d2ee40a35')
pkgver() {
cd "$srcdir/osmocom-bb"
- __pkgver="$(git describe --always)"
- __pkgver="${__pkgver//-/.}"
- echo "${__pkgver#*_v}"
+ git describe --long | sed 's/^osmocon_//; s/\([^-]*-g\)/r\1/; s/-/./g'
}
prepare() {