summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD6
2 files changed, 6 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0436b71fc9f..82f3d6a6099 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = hastebin
pkgdesc = Upload data to hastebin.com via stdin
- pkgver = 0.1.0
+ pkgver = r5.ef0fd37
pkgrel = 1
url = https://github.com/kevr/sprunge
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index 231464f81f9..7fb36c05fbe 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,5 @@
pkgname='hastebin'
-pkgver='0.1.0'
+pkgver=r5.ef0fd37
pkgrel=1
pkgdesc='Upload data to hastebin.com via stdin'
license=('GPL2')
@@ -12,6 +12,10 @@ sha256sums=(
'b2ac5a7a8fab997e0b9454fcd54eaf8d3fc2a937bcca8bd2605d2bdd6a04a789'
)
+pkgver() {
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
package()
{
install -Dm755 "${srcdir}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"