summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD4
2 files changed, 3 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 60b5dcbcc0ff..6de525377ae2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = icinga2-git
pkgdesc = An open source host, service and network monitoring program
- pkgver = r9231.3caf48025
+ pkgver = 2.10.2.r247.g4238b6118
pkgrel = 1
url = http://www.icinga.org
install = icinga2-git.install
diff --git a/PKGBUILD b/PKGBUILD
index e1d2009e419f..747ec205eeef 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname='icinga2-git'
_pkgname=icinga2
-pkgver=r9231.3caf48025
+pkgver=2.10.2.r247.g4238b6118
pkgrel=1
pkgdesc="An open source host, service and network monitoring program"
license=('GPL')
@@ -52,7 +52,7 @@ sha256sums=('SKIP'
pkgver() {
cd "$_pkgname"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {