summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD9
1 files changed, 7 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 9059241b06c..03733e3ab50 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,8 @@
pkgbase=dhex
pkgname=dhex-git
-pkgver=0.68
-pkgrel=5
+pkgver=r3.4cbe567
+pkgrel=1
pkgdesc="An ncurses-based hexeditor with a diff mode"
arch=('x86_64')
url="https://github.com/ideal/dhex/"
@@ -15,6 +15,11 @@ md5sums=('SKIP')
dirname=dhex
+pkgver() {
+ cd "${srcdir}/${dirname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
build() {
cd "${srcdir}/${dirname}"
make