summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PKGBUILD5
1 files changed, 5 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 7c2bdfd8bde..40c7aa0ab23 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,6 +11,11 @@ provides=("hx")
source=("git+https://github.com/helix-editor/helix.git")
sha256sums=('SKIP')
+pkgver() {
+ cd "$_pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
prepare() {
cat > "hx" << EOF
#!/usr/bin/env sh