Package Details: icingaweb2-git 2.6.2.r21.g9571d1059-1

Git Clone URL: https://aur.archlinux.org/icingaweb2-git.git (read-only)
Package Base: icingaweb2-git
Description: Icinga Web 2 Interface
Upstream URL: http://www.icinga.org
Licenses: GPL
Conflicts: icingaweb2
Provides: icingaweb2
Submitter: Zearan
Maintainer: julianbrost
Last Packager: julianbrost
Votes: 2
Popularity: 0.000001
First Submitted: 2015-05-29 09:37
Last Updated: 2019-02-17 16:09

Dependencies (5)

Required by (6)

Sources (1)

Latest Comments

wuestengecko commented on 2019-01-24 23:10

According to the Wiki, "the developer should get the release version somehow e.g. by parsing the project files" - this can be done easily by reading the VERSION file and checking when it was last changed:

diff --git a/PKGBUILD b/PKGBUILD
index fa301ef..2bbb118 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -21,7 +21,8 @@ sha256sums=('SKIP')

 pkgver() {
   cd "$_pkgname"
-  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+  local ver_commit="$(git blame --porcelain VERSION | head -c 40)"
+  printf "%s.r%s.%s" "$(sed 's/^v//' < VERSION)" "$(git rev-list --count $ver_commit..HEAD)" "$(git rev-parse --short HEAD)"
 }

 package() {