diff options
author | Alexei Colin | 2016-05-27 10:48:15 -0400 |
---|---|---|
committer | Alexei Colin | 2016-05-27 10:48:15 -0400 |
commit | 323044c9a1cc0f9a57a60fcd4cf5225c9f51b229 (patch) | |
tree | c00bd2b5d514e6316cfbd0ff6a235415eb4c5c5d /PKGBUILD | |
parent | c00cc81b74bd819b6aba1bc25505190f8192c0a0 (diff) | |
download | aur-323044c9a1cc0f9a57a60fcd4cf5225c9f51b229.tar.gz |
fix version string generation
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -8,6 +8,7 @@ pkgname=taskd-git pkgver=1.2.0 pkgrel=1 +_branch=1.2.0 pkgdesc="A lightweight secure server providing multi-user, multi-client access to task data" url='http://tasktools.org/projects/taskd.html' @@ -15,7 +16,7 @@ license=('MIT') install=taskd.install -source=("${pkgname}::git+https://git.tasktools.org/scm/tm/taskd.git#branch=1.2.0" +source=("${pkgname}::git+https://git.tasktools.org/scm/tm/taskd.git#branch=${_branch}" 'taskd.conf' 'taskd.notes') @@ -31,7 +32,7 @@ provides=('taskd') pkgver() { cd "${pkgname}" - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + git describe --long origin/$_branch | sed 's/^s//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { |