summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorFrederik “Freso” S. Olesen2020-04-27 21:32:01 +0200
committerFrederik “Freso” S. Olesen2020-04-27 21:32:01 +0200
commit71e76ad5fc74dcd935bd612ee66b3dc54c750eb0 (patch)
treebc74322680830eb1a38327c7832be5447ec2d8ee /PKGBUILD
parentcbf62f27cdc05c6c16eb9f7643d10d502c550e23 (diff)
downloadaur-low-memory-monitor-git.tar.gz
Update pkgver() to use git tagged versions
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD4
1 files changed, 2 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 7e7966616c8..c664212bdbb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Frederik “Freso” S. Olesen <archlinux@freso.dk>
_pkgname=low-memory-monitor
pkgname=${_pkgname}-git
-pkgver=r79.5e06b3b
+pkgver=2.0.r16.g5e06b3b
pkgrel=1
pkgdesc='Early boot daemon monitoring memory pressure information and invokes OOM if needed'
arch=('x86_64')
@@ -16,7 +16,7 @@ sha512sums=('SKIP')
pkgver() {
cd "$srcdir/${_pkgname}"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {