summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorEgor Kovetskiy2020-07-13 17:43:11 +0300
committerEgor Kovetskiy2020-07-13 17:43:11 +0300
commit5b8f76e41605cf3e468a7b1273e573a3f2a1e4db (patch)
tree86231c66a395bb18cf3db731cbff0395dab1615f /PKGBUILD
parent74bb81c75d55dede4e015cf107313cbdf30b7528 (diff)
downloadaur-5b8f76e41605cf3e468a7b1273e573a3f2a1e4db.tar.gz
taskfile-git: add zsh completion
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD14
1 files changed, 3 insertions, 11 deletions
diff --git a/PKGBUILD b/PKGBUILD
index dedff303ea1..40007b566d4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Egor Kovetskiy <e.kovetskiy@gmail.com>
pkgname=taskfile-git
_pkgname=task
-pkgver=2.8.1
+pkgver=v2.8.1.r7.g7dcb3af
pkgrel=1
pkgdesc="A task runner / simpler Make alternative written in Go"
arch=('any')
@@ -27,16 +27,8 @@ backup=(
)
pkgver() {
- if [[ "$PKGVER" ]]; then
- echo "$PKGVER"
- return
- fi
-
- cd "$srcdir/$_pkgname"
- local date=$(git log -1 --format="%cd" --date=short | sed s/-//g)
- local count=$(git rev-list --count HEAD)
- local commit=$(git rev-parse --short HEAD)
- echo "$date.${count}_$commit"
+ cd "$srcdir/$_pkgname"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^r//'
}
build() {