diff options
author | kyechou | 2020-12-24 10:06:04 -0600 |
---|---|---|
committer | kyechou | 2020-12-24 10:06:04 -0600 |
commit | 4fa01064da572bf07ce67ca31eaf847933e13687 (patch) | |
tree | 4795bc58e0d38a8bf455a8a09461226dbd31dbbe | |
parent | df03db5599d91f08a2d190a75e15c08a0d46d359 (diff) | |
download | aur-4fa01064da572bf07ce67ca31eaf847933e13687.tar.gz |
Update versioning scheme
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 10 |
2 files changed, 9 insertions, 5 deletions
@@ -1,6 +1,6 @@ pkgbase = gllvm-git pkgdesc = Whole Program LLVM: wllvm ported to go - pkgver = v1.2.9.r3.g78dee16 + pkgver = 1.2.9.r3.g78dee16 pkgrel = 1 url = https://github.com/SRI-CSL/gllvm arch = any @@ -11,7 +11,7 @@ pkgbase = gllvm-git depends = llvm provides = gllvm conflicts = gllvm - source = gllvm-git::git+https://github.com/SRI-CSL/gllvm.git + source = gllvm-git::git+https://github.com/SRI-CSL/gllvm sha256sums = SKIP pkgname = gllvm-git @@ -1,7 +1,7 @@ # Maintainer: Kuan-Yen Chou <kuanyenchou at gmail dot com> pkgname=gllvm-git -pkgver=v1.2.9.r3.g78dee16 +pkgver=1.2.9.r3.g78dee16 pkgrel=1 pkgdesc="Whole Program LLVM: wllvm ported to go" arch=('any') @@ -11,12 +11,16 @@ depends=('clang' 'llvm') makedepends=('git' 'go') provides=('gllvm') conflicts=('gllvm') -source=("$pkgname"::'git+https://github.com/SRI-CSL/gllvm.git') +source=("$pkgname"::'git+https://github.com/SRI-CSL/gllvm') sha256sums=('SKIP') pkgver() { cd "$srcdir/$pkgname" - git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' + if git describe --long --tags >/dev/null 2>&1; then + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' + else + printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git describe --always)" + fi } package() { |