summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormorguldir2020-07-13 05:40:41 +0200
committermorguldir2020-07-13 05:40:41 +0200
commit8a554507d7bb4d8477ca5bc8c30f3875efa3ca68 (patch)
treeec6e24b04cb729ab71b943169988d41fc47e80c7
parent6c27e3bc85d54842b59a07cf85ee523242ffa062 (diff)
downloadaur-8a554507d7bb4d8477ca5bc8c30f3875efa3ca68.tar.gz
Update pkgver() to include version, add python-click dependency
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD14
2 files changed, 13 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ef6c0a53da2..66937815c2a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = tuxemon-git
pkgdesc = A free, open source monster-fighting RPG.
- pkgver = r1668.6908fd34
- pkgrel = 2
+ pkgver = 0.4.25.r5.a133d6262
+ pkgrel = 1
url = http://www.tuxemon.org
arch = any
groups = games
@@ -16,6 +16,7 @@ pkgbase = tuxemon-git
depends = python-lxml
depends = python-natsort
depends = python-pillow
+ depends = python-click
optdepends = libShake: rumble library for Linux.
provides = tuxemon
conflicts = tuxemon
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() {