diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -1,6 +1,6 @@ pkgbase = cwtch-git pkgdesc = UI for Privacy Preserving Infrastructure for Asynchronous, Decentralized and Metadata Resistant Applications (git) - pkgver = .1.7.0.r0.g59e3220b + pkgver = 1.7.0.r0.g59e3220b pkgrel = 1 url = https://cwtch.im/ arch = x86_64 @@ -2,7 +2,7 @@ _pkgname=cwtch pkgname=$_pkgname-git -pkgver=.1.7.0.r0.g59e3220b +pkgver=1.7.0.r0.g59e3220b pkgrel=1 pkgdesc="UI for Privacy Preserving Infrastructure for Asynchronous, Decentralized and Metadata Resistant Applications (git)" arch=('x86_64') @@ -18,7 +18,7 @@ sha512sums=('SKIP') pkgver() { cd "$srcdir/$_pkgname" ( set -o pipefail - git describe --long --tags 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' || + git describe --long --tags 2>/dev/null | sed 's/^v\.\?//;s/\([^-]*-g\)/r\1/;s/-/./g' || printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" ) } |