diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 7 |
2 files changed, 7 insertions, 2 deletions
@@ -1,6 +1,6 @@ pkgbase = pkgtop-git pkgdesc = Interactive package manager & resource monitor - pkgver = 1.0.0 + pkgver = r315.19d57fb pkgrel = 1 url = https://github.com/keylo99/pkgtop arch = any @@ -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 ./... |