summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorKeyLo992019-08-27 23:19:18 +0300
committerKeyLo992019-08-27 23:19:18 +0300
commite5cf2e1308943fd722c427b984064f1bdc12293f (patch)
tree8cce6d5665450b881889562861870542be77949e /PKGBUILD
parent3fe647e265eca2e89a80a15a073a0f8038b8a91d (diff)
downloadaur-e5cf2e1308943fd722c427b984064f1bdc12293f.tar.gz
Add pkgver function back for the submittion rules
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD7
1 files changed, 6 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index cd5bc25e7cd..186f58fcf97 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=pkgtop-git
pkgdesc="Interactive package manager & resource monitor"
-pkgver=1.0.0
+pkgver=r315.19d57fb
pkgrel=1
arch=('any')
url="https://github.com/keylo99/pkgtop"
@@ -14,6 +14,11 @@ conflicts=("${pkgname%-git}")
source=('git://github.com/keylo99/pkgtop.git#branch=master')
sha256sums=('SKIP')
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
build() {
cd "$srcdir/${pkgname%-git}/src"
go get -d ./...