summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authormorguldir2020-07-13 05:40:41 +0200
committermorguldir2020-07-13 05:40:41 +0200
commit8a554507d7bb4d8477ca5bc8c30f3875efa3ca68 (patch)
treeec6e24b04cb729ab71b943169988d41fc47e80c7 /PKGBUILD
parent6c27e3bc85d54842b59a07cf85ee523242ffa062 (diff)
downloadaur-8a554507d7bb4d8477ca5bc8c30f3875efa3ca68.tar.gz
Update pkgver() to include version, add python-click dependency
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD14
1 files changed, 10 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 9bd8ed23af8..6f40478591f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,14 +1,14 @@
# Maintainer: morguldir <morguldir@protonmail.com>
# Contributor: Sebastian Gumprich <sebastian.gumprich@38.de>
pkgname=tuxemon-git
-pkgver=r1668.6908fd34
-pkgrel=2
+pkgver=0.4.25.r5.a133d6262
+pkgrel=1
pkgdesc="A free, open source monster-fighting RPG."
arch=('any')
url="http://www.tuxemon.org"
license=('GPL3')
groups=('games')
-depends=('python' 'python-cbor' 'python-pytmx' 'python-neteria' 'python-pyscroll' 'python-babel' 'python-lxml' 'python-natsort' 'python-pillow')
+depends=('python' 'python-cbor' 'python-pytmx' 'python-neteria' 'python-pyscroll' 'python-babel' 'python-lxml' 'python-natsort' 'python-pillow' 'python-click')
makedepends=('git')
optdepends=('libShake: rumble library for Linux.')
provides=("${pkgname%-git}")
@@ -18,7 +18,13 @@ sha256sums=('SKIP')
pkgver() {
cd $pkgname
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+
+ _info="$(git blame -s README.md|grep 'Tuxemon [0-9].[0-9].[0-9]')"
+ _version="$(echo $_info | awk '{print $4}')"
+ _commit="$(echo $_info | awk '{print $1}')"
+ _revisions="$(git rev-list --count $_commit..HEAD)"
+
+ printf "%s.r%s.%s" $_version $_revisions $_commit
}
prepare() {