summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatti Niemenmaa2020-01-18 16:10:43 +0200
committerMatti Niemenmaa2020-01-18 16:13:15 +0200
commit930bc2af5fe55083a3a89587f8a841530ff67cb0 (patch)
treec4e265bf0bb760cb487e47744c342c5032a2bb92
parentd9353ac1ebbb88d8b4161f3cc86af80c2275a787 (diff)
downloadaur-vgmstream-kode54-git.tar.gz
Match upstream tags better in version numbers
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD5
2 files changed, 4 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index bf757ab682c..1bf227e98a2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = vgmstream-kode54-git
pkgdesc = Library for playback of various streamed audio formats used in video games (kode54's fork)
- pkgver = r1050.r2771.ge58c73aa
+ pkgver = r1050.2771.ge58c73aa
pkgrel = 1
url = https://github.com/kode54/vgmstream
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index c7aa85e1489..54fb4867da1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,5 @@
pkgname=vgmstream-kode54-git
-pkgver=r1050.r2771.ge58c73aa
+pkgver=r1050.2771.ge58c73aa
pkgrel=1
pkgdesc="Library for playback of various streamed audio formats used in video games (kode54's fork)"
arch=(x86_64)
@@ -21,7 +21,8 @@ sha256sums=('SKIP'
pkgver() {
cd "$srcdir/$pkgname"
( set -o pipefail
- git describe --long 2>/dev/null | sed -r 's/([^-]*-g)/r\1/;y/-/./' ||
+ git describe --tags --exact-match 2>/dev/null | tr - . ||
+ git describe --long | tr - . ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}