summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorideal2018-10-26 13:10:58 +0800
committerideal2018-10-26 13:10:58 +0800
commitb580cf043e33c5d00eb2bf7270af021bb02afb14 (patch)
tree6987186d000c85059b724cd90112824c980c14cd /PKGBUILD
parent2f1083afa1b8ebd35e29a003b62759c055e4c237 (diff)
downloadaur-b580cf043e33c5d00eb2bf7270af021bb02afb14.tar.gz
change pkgver
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