diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 5 |
2 files changed, 4 insertions, 3 deletions
@@ -1,6 +1,6 @@ pkgbase = center-align pkgdesc = Simple utility to align the stdout text (horizontal+vertical) Middle - pkgver = 31a7f95 + pkgver = r1.f6fce9f pkgrel = 1 url = https://github.com/niksingh710/center-align arch = x86_64 @@ -1,6 +1,6 @@ # Maintainer: Nikhil Singh <nik.singh710@gmail.com> pkgname=center-align -pkgver=31a7f95 +pkgver=r1.f6fce9f pkgrel=1 pkgdesc="Simple utility to align the stdout text (horizontal+vertical) Middle" arch=("x86_64") @@ -17,7 +17,8 @@ pkgver() { cd "$pkgname" ( set -o pipefail - git describe --long --tags --always | sed 's/\([^-]*-g\)/r\1/;s/-/./g' + git describe --long --abbrev=7 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)" ) } |