summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD9
2 files changed, 9 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index af8998482f1..a4346e42962 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = dhex
pkgdesc = An ncurses-based hexeditor with a diff mode
- pkgver = 0.68
- pkgrel = 5
+ pkgver = r3.4cbe567
+ pkgrel = 1
url = https://github.com/ideal/dhex/
arch = x86_64
license = GPL
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