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