summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD10
1 files changed, 9 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 836f25ba2a4..aafea46721c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,9 +14,17 @@ conflicts=(libnsl)
source=("git+https://github.com/thkukuk/libnsl.git")
md5sums=('SKIP')
+_commit() {
+ # Convert HEAD into a shortened commit id:
+ git rev-parse --short HEAD
+}
+
pkgver() {
cd libnsl
- git describe --tags | sed 's/-/+/g'
+
+ # Suggestions for improvement welcome!
+ printf '%s.r%s.%s' \
+ "$(_commit)"
}
prepare() {