summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Gathoye2017-03-13 23:49:57 +0100
committerWilliam Gathoye2017-03-13 23:49:57 +0100
commit9618481cfcb5f0a400a644a01c72f816d033b4ef (patch)
tree92e372e697107cd1799f6e9608f0b0e47104b7df
parent407f319db17727c372b4587af5f02dd92e7b37f3 (diff)
downloadaur-9618481cfcb5f0a400a644a01c72f816d033b4ef.tar.gz
Add link in comment for ease of use
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD3
2 files changed, 3 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7de91fed412..6a7dd2c1b5a 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 28351067c2d..daa32765d8e 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'