diff options
author | morguldir | 2020-07-13 05:46:58 +0200 |
---|---|---|
committer | morguldir | 2020-07-13 05:46:58 +0200 |
commit | 6a02b20c649bd8dbe9003efb61d7cdd14aea16e3 (patch) | |
tree | 0e6f60f80bc824ad225cc094cd4f1ce3ffffcd43 /PKGBUILD | |
parent | 8a554507d7bb4d8477ca5bc8c30f3875efa3ca68 (diff) | |
download | aur-6a02b20c649bd8dbe9003efb61d7cdd14aea16e3.tar.gz |
Use the current commit in pkgver
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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() { |