summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qgis-git/PKGBUILD5
1 files changed, 3 insertions, 2 deletions
diff --git a/qgis-git/PKGBUILD b/qgis-git/PKGBUILD
index 8583a6d8e..bf3847433 100644
--- a/qgis-git/PKGBUILD
+++ b/qgis-git/PKGBUILD
@@ -5,6 +5,7 @@ pkgname=qgis-git
_pkgname=qgis
pkgver=2.99.0.r40798.7d4f81d4c6
_pkgver=2.99.0
+_commit=${pkgver##*.}
pkgrel=1
pkgdesc='Geographic Information System (GIS) that supports vector, raster & database formats - Development master'
url='http://qgis.org/'
@@ -20,13 +21,13 @@ optdepends=('grass: for GRASS providers and plugin (6 or 7)'
'ocilib: oracle provider')
#install="$_pkgname.install"
-source=("${_pkgname}::git://github.com/qgis/QGIS.git")
+source=("${_pkgname}::git://github.com/qgis/QGIS.git#commit=$_commit")
md5sums=('SKIP')
conflicts=('qgis')
pkgver(){
cd "$_pkgname"
- printf "%s.r%s" "$_pkgver" "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
+ printf "%s.r%s" "$_pkgver" "$(git rev-list --count $_commit).$(git rev-parse --short $_commit)"
}
prepare() {