summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorGabriel Margiani2019-02-16 23:59:18 +0100
committerGabriel Margiani2019-02-16 23:59:18 +0100
commitb5696456f1e6ff0d7023d57b14fbb5efe4f02e77 (patch)
tree7bfd02bd84c30f123068ee8333008011dfc7be7e /PKGBUILD
parent97c51d8aa8754a850f93142b82d1674361b500ac (diff)
downloadaur-widelands-bzr.tar.gz
Change pkgver format to contain latest wl build number
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD11
1 files changed, 8 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ca0dbae1998..3e2511a6639 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,14 +2,14 @@
#Contributor: matthiaskrgr <matthias · krueger _strange_curved_character_ famsike · de>
pkgname=widelands-bzr
-pkgver=r8507
+pkgver=19.r8984
pkgrel=1
pkgdesc="A realtime strategy game with emphasis on economy and transport - development version"
arch=(i686 x86_64)
license=('GPL2')
depends=('glew' 'sdl2_image' 'boost-libs' 'sdl2_mixer' 'sdl2_ttf')
makedepends=('bzr' 'cmake' 'python' 'boost')
-provides=('widelands')
+provides=("widelands=$pkgver")
conflicts=('widelands' 'widelands-data')
url="http://wl.widelands.org"
changelog=changelog
@@ -59,5 +59,10 @@ package() {
}
pkgver() {
- printf "r%s" "$(bzr revno "http://bazaar.launchpad.net/~widelands-dev/widelands/trunk" -q)"
+ cd "${srcdir}/${pkgname}"
+
+ _build="$(sed -ne "s/.*<release .* version=\"Build \([0-9]\+\)\"\/>/\1/p" debian/widelands.appdata.xml | sort -rn | head -n 1)"
+ _rev="$(bzr revno -q)"
+
+ printf "%s.r%s" "${_build}" "${_rev}"
}