diff options
author | Sandy Carter | 2022-01-30 19:51:50 -0500 |
---|---|---|
committer | Sandy Carter | 2022-01-30 19:51:50 -0500 |
commit | 5702a8aed4dbcb29164fa53a73164de57f2fc7b2 (patch) | |
tree | 21eeb4103ac23169597b9345dd6c12ace4edf1fb | |
parent | 711cf4a53023516503905ee03510a331e5b1bd4f (diff) | |
download | aur-5702a8aed4dbcb29164fa53a73164de57f2fc7b2.tar.gz |
version: avoid non-formatable branch names like 'stable'
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -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 @@ -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" |