summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoractionless2018-11-23 21:32:26 +0100
committeractionless2018-11-23 21:32:26 +0100
commit939c0c717ef7aef3218bd294059891c66dadeed3 (patch)
treeaae6c6903c5c284561eb8d7bfccac720aca18d43
parent408b332ff617c8b3978f8299c77f74a406b0f5c6 (diff)
downloadaur-939c0c717ef7aef3218bd294059891c66dadeed3.tar.gz
update pkgver to use tag correctly
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD5
2 files changed, 4 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0377be60831..24353c81ee9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = nohang-git
pkgdesc = A highly configurable OOM preventer
- pkgver = r150.g83ac238
- pkgrel = 2
+ pkgver = 0.1.r2.ga8cde7c
+ pkgrel = 1
url = https://github.com/hakavlad/nohang
arch = any
license = MIT
diff --git a/PKGBUILD b/PKGBUILD
index 0c46f572517..cb65881dc76 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
_pkgname=nohang
pkgname=${_pkgname}-git
-pkgver=r152.g37bb978
+pkgver=0.1.r2.ga8cde7c
pkgrel=1
pkgdesc="A highly configurable OOM preventer"
arch=('any')
@@ -27,8 +27,7 @@ backup=('etc/nohang/nohang.conf')
pkgver() {
cd "${srcdir}/${pkgname}" || exit 2
set -o pipefail
- git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || \
- echo "r$(git log --oneline | wc -l).g$(git describe --always)"
+ git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {