summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandy Carter2022-01-30 19:51:50 -0500
committerSandy Carter2022-01-30 19:51:50 -0500
commit5702a8aed4dbcb29164fa53a73164de57f2fc7b2 (patch)
tree21eeb4103ac23169597b9345dd6c12ace4edf1fb
parent711cf4a53023516503905ee03510a331e5b1bd4f (diff)
downloadaur-5702a8aed4dbcb29164fa53a73164de57f2fc7b2.tar.gz
version: avoid non-formatable branch names like 'stable'
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD4
2 files changed, 3 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4ac38da6c590..7b51fa54d0f6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = openmw-git
pkgdesc = An open-source engine reimplementation for the role-playing game Morrowind.
- pkgver = 0.46.0.r2803.gcd9fb2ada
+ pkgver = 0.47.0.r1788.g2bd99867f
pkgrel = 1
url = http://www.openmw.org
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 46f3445c9b55..4c77dfe21648 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,5 @@
pkgname=openmw-git
-pkgver=0.46.0.r2803.gcd9fb2ada
+pkgver=0.47.0.r1788.g2bd99867f
pkgrel=1
pkgdesc="An open-source engine reimplementation for the role-playing game Morrowind."
arch=('i686' 'x86_64')
@@ -15,7 +15,7 @@ sha1sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname%-git}"
- _tag="$(git describe --tags $(git rev-list --tags --max-count=1) | sed 's/openmw-//')"
+ _tag="$(git describe --tags --match 'openmw*' --abbrev=0 $(git rev-list --tags) | head -n 1 | sed 's/openmw-//')"
_numcommits="$(git rev-list `git rev-list --tags --no-walk --max-count=1`..HEAD --count)"
_hash="$(git rev-parse --short HEAD)"
printf "%s.r%s.g%s" "$_tag" "$_numcommits" "$_hash"