summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD3
2 files changed, 3 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7de91fed4122..6a7dd2c1b5a5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = progit2-git
pkgdesc = The offline version of the entire Pro Git book, written by Scott Chacon and Ben Straub
pkgver = 2.0.0.r689.g5026c45
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/progit/progit2
install = progit2-git.install
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index 28351067c2d8..daa32765d8eb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=progit2-git
pkgver=2.0.0.r689.g5026c45
-pkgrel=2
+pkgrel=3
pkgdesc="The offline version of the entire Pro Git book, written by Scott Chacon and Ben Straub"
arch=('any')
@@ -25,6 +25,7 @@ source=('git+https://github.com/progit/progit2')
sha512sums=('SKIP')
# Get the most recent un-annotated tag reachable from the last commit
+# src.: https://wiki.archlinux.org/index.php/VCS_package_guidelines#Git
pkgver() {
cd "${pkgname%-git}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'