summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorwojciechkepka2021-06-01 21:09:04 +0200
committerwojciechkepka2021-06-01 21:09:16 +0200
commit1b32032463d714290ddb4f431bfd1085732b9055 (patch)
tree57fb48bb19a36f0db1a9ee32c3619f52f9ca42ce
parent32ed0d5c51f66bf54aabc101e0b2950d6c3984f9 (diff)
downloadaur-1b32032463d714290ddb4f431bfd1085732b9055.tar.gz
Add pkgver
-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