summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorotreblan2020-07-30 07:45:07 -0500
committerotreblan2020-07-30 07:45:07 -0500
commit62c847416c5ea3d5de4e0b951d907433e07877ae (patch)
tree01b3ecf554726bfd4841828c0b34d16996ec8ab8
parentec4bbc7f907f52ba0ba38f9b75bd096af6e40001 (diff)
downloadaur-62c847416c5ea3d5de4e0b951d907433e07877ae.tar.gz
Fix versioning
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD4
2 files changed, 3 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5a14779623c..78a2d6e5500 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = ai-dungeon-cli-git
pkgdesc = Play ai dungeon on your terminal
- pkgver = 0.4.1
+ pkgver = 0.4.1.r0.g771f9cc
pkgrel = 1
url = https://github.com/Eigenbahn/ai-dungeon-cli
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index ac2ee2ca5f5..430fbc03d6f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Otreblan <otreblain@gmail.com>
pkgname=ai-dungeon-cli-git
-pkgver=0.4.1
+pkgver=0.4.1.r0.g771f9cc
pkgrel=1
pkgdesc="Play ai dungeon on your terminal"
arch=('any')
@@ -26,7 +26,7 @@ sha256sums=("SKIP")
pkgver() {
cd "$srcdir/$pkgname"
( set -o pipefail
- git describe --tags 2>/dev/null | sed 's/^v-//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
+ git describe --tags --long 2>/dev/null | sed 's/^v-//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}