summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoractionless2018-11-09 05:08:39 +0100
committeractionless2018-11-09 05:08:39 +0100
commit855b77944c569dd85e105b34ff761a37ef222719 (patch)
tree274a9ea929f13f248d8db42dd07747f15c5c0154
parent711bb9ad24db06d091b6cd17d2f002a414c46c7c (diff)
downloadaur-855b77944c569dd85e105b34ff761a37ef222719.tar.gz
fix fallback version generation
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD6
2 files changed, 4 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 30a4c1eebd6..a2345b21f31 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = nohang-git
pkgdesc = A highly configurable OOM preventer
pkgver = r83ac238
- pkgrel = 2
+ pkgrel = 1
url = https://github.com/hakavlad/nohang
arch = any
license = MIT
diff --git a/PKGBUILD b/PKGBUILD
index 7c514a5f10a..346babe250d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,8 +3,8 @@
_pkgname=nohang
pkgname=${_pkgname}-git
-pkgver=r83ac238
-pkgrel=2
+pkgver=r150.g83ac238
+pkgrel=1
pkgdesc="A highly configurable OOM preventer"
arch=('any')
url="https://github.com/hakavlad/nohang"
@@ -27,7 +27,7 @@ pkgver() {
cd "${srcdir}/${pkgname}" || exit 2
set -o pipefail
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || \
- git describe --long --always | sed 's/^/r/'
+ echo "r$(git log --oneline | wc -l).$(git describe --always | sed 's/^/g/')"
}
package() {