diff options
author | Thomas Lange | 2020-04-13 14:32:40 +0200 |
---|---|---|
committer | Thomas Lange | 2020-04-13 14:32:40 +0200 |
commit | c73aafb3c6ee45bda9a756bb5e6fd43b9bc4ab17 (patch) | |
tree | eb1830037793e68d99bc0fff7bd230662132bf79 | |
parent | ae27afb7317678939f0dfdea6a0c2746c2abc35d (diff) | |
download | aur-c73aafb3c6ee45bda9a756bb5e6fd43b9bc4ab17.tar.gz |
Use most recent tag for pkgver
Suggested by dvzrv.
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 7 insertions, 6 deletions
@@ -1,7 +1,8 @@ pkgbase = mumble-git - pkgdesc = A voice chat application similar to TeamSpeak - pkgver = 1.4.0.r7961.310497a40 + pkgdesc = A voice chat application similar to TeamSpeak (git version) + pkgver = 1.3.0.rc2.r399.g7ed7d95f4 pkgrel = 1 + epoch = 1 url = https://www.mumble.info/ arch = i686 arch = x86_64 @@ -7,11 +7,11 @@ _pkgname=mumble pkgname="$_pkgname-git" -_pkgver=1.4.0 -pkgver=1.4.0.r7961.310497a40 +pkgver=1.3.0.rc2.r399.g7ed7d95f4 pkgrel=1 +epoch=1 arch=('i686' 'x86_64') -pkgdesc='A voice chat application similar to TeamSpeak' +pkgdesc='A voice chat application similar to TeamSpeak (git version)' url='https://www.mumble.info/' license=('BSD') depends=('gcc-libs' 'glibc' 'hicolor-icon-theme' 'libspeechd' 'libx11' 'libxi' @@ -29,7 +29,7 @@ sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP') pkgver() { cd "$_pkgname" - printf "$_pkgver.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { |