summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authormorguldir2020-07-13 05:46:58 +0200
committermorguldir2020-07-13 05:46:58 +0200
commit6a02b20c649bd8dbe9003efb61d7cdd14aea16e3 (patch)
tree0e6f60f80bc824ad225cc094cd4f1ce3ffffcd43 /PKGBUILD
parent8a554507d7bb4d8477ca5bc8c30f3875efa3ca68 (diff)
downloadaur-tuxemon-git.tar.gz
Use the current commit in pkgver
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD7
1 files changed, 4 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 6f40478591f..4fd2c0f6869 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,8 @@
# Maintainer: morguldir <morguldir@protonmail.com>
# Contributor: Sebastian Gumprich <sebastian.gumprich@38.de>
pkgname=tuxemon-git
-pkgver=0.4.25.r5.a133d6262
-pkgrel=1
+pkgver=0.4.25.r5.g2c741edc
+pkgrel=2
pkgdesc="A free, open source monster-fighting RPG."
arch=('any')
url="http://www.tuxemon.org"
@@ -23,8 +23,9 @@ pkgver() {
_version="$(echo $_info | awk '{print $4}')"
_commit="$(echo $_info | awk '{print $1}')"
_revisions="$(git rev-list --count $_commit..HEAD)"
+ _current_commit="$(git log --pretty=format:'%h' -n 1)"
- printf "%s.r%s.%s" $_version $_revisions $_commit
+ printf "%s.r%d.g%s" $_version $_revisions $_current_commit
}
prepare() {