summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriel Margiani2019-02-16 23:59:18 +0100
committerGabriel Margiani2019-02-16 23:59:18 +0100
commitb5696456f1e6ff0d7023d57b14fbb5efe4f02e77 (patch)
tree7bfd02bd84c30f123068ee8333008011dfc7be7e
parent97c51d8aa8754a850f93142b82d1674361b500ac (diff)
downloadaur-b5696456f1e6ff0d7023d57b14fbb5efe4f02e77.tar.gz
Change pkgver format to contain latest wl build number
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD11
-rw-r--r--changelog3
3 files changed, 13 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7fd9940ab9b..0ed12849fd5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = widelands-bzr
pkgdesc = A realtime strategy game with emphasis on economy and transport - development version
- pkgver = r8507
+ pkgver = 19.r8984
pkgrel = 1
url = http://wl.widelands.org
changelog = changelog
@@ -16,7 +16,7 @@ pkgbase = widelands-bzr
depends = boost-libs
depends = sdl2_mixer
depends = sdl2_ttf
- provides = widelands
+ provides = widelands=19.r8984
conflicts = widelands
conflicts = widelands-data
source = changelog
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}"
}
diff --git a/changelog b/changelog
index 305dc35ca44..f0832fc7b9b 100644
--- a/changelog
+++ b/changelog
@@ -1,3 +1,6 @@
+Version 19.r8984-1
+ * Change pkgver format to contain last release/build number.
+
Version r8507-1
* Add -DOPTION_ASAN=OFF cmake option