summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormorguldir2020-07-13 05:46:58 +0200
committermorguldir2020-07-13 05:46:58 +0200
commit6a02b20c649bd8dbe9003efb61d7cdd14aea16e3 (patch)
tree0e6f60f80bc824ad225cc094cd4f1ce3ffffcd43
parent8a554507d7bb4d8477ca5bc8c30f3875efa3ca68 (diff)
downloadaur-6a02b20c649bd8dbe9003efb61d7cdd14aea16e3.tar.gz
Use the current commit in pkgver
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD7
2 files changed, 6 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 66937815c2a..b6a2abada46 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = tuxemon-git
pkgdesc = A free, open source monster-fighting RPG.
- pkgver = 0.4.25.r5.a133d6262
- pkgrel = 1
+ pkgver = 0.4.25.r5.g2c741edc
+ pkgrel = 2
url = http://www.tuxemon.org
arch = any
groups = games
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() {