From b37f982e931032c977e6b586a40d250f7347162b Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 26 Feb 2018 08:35:59 +0100 Subject: qgis-git: update style of pkgver() --- qgis-git/PKGBUILD | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'qgis-git/PKGBUILD') diff --git a/qgis-git/PKGBUILD b/qgis-git/PKGBUILD index 242e52ee6..2114b935f 100644 --- a/qgis-git/PKGBUILD +++ b/qgis-git/PKGBUILD @@ -28,7 +28,24 @@ provides=('qgis') pkgver(){ cd "$_pkgname" - printf "%s.r%s" "$_pkgver" "$(git rev-list --count $_commit).$(git rev-parse --short $_commit)" + printf '%s.r%s.%s' \ + "$( + git archive ${_commit} -- debian/changelog | \ + tar -Ox | \ + sed -n ' + s/^\s*\* Release of \(\S\+\)\s*$/\1/ + T + p + ' | \ + sort -V | \ + tail -n1 + )" \ + "$( + git rev-list --count ${_commit} + )" \ + "$( + git rev-parse --short ${_commit} + )" } prepare() { -- cgit v1.2.3-70-g09d2