diff options
author | Hong Shick Pak | 2021-04-11 13:52:55 -0700 |
---|---|---|
committer | Hong Shick Pak | 2021-04-11 13:52:55 -0700 |
commit | 27ad16b904d41776c2619168e1b0dcd948857e05 (patch) | |
tree | d71162497832327c2ddbf12ae9d2d4e1d078b8d4 | |
parent | adad04e1e01708ca671e6ced4c65165bd69e4159 (diff) | |
download | aur-zur-git.tar.gz |
fix git version
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 7 |
2 files changed, 9 insertions, 3 deletions
@@ -1,16 +1,17 @@ pkgbase = zur-git pkgdesc = An AUR helper written in Zig - pkgver = 0.5 + pkgver = 0.5.0+3+g49035b5 pkgrel = 1 url = https://github.com/hspak/zur arch = x86_64 license = MIT makedepends = zig-git + makedepends = git depends = pacman depends = curl provides = zur-git conflicts = zur-git - source = git://github.com/hspak/zur + source = git+https://github.com/hspak/zur sha256sums = SKIP pkgname = zur-git @@ -1,7 +1,7 @@ # Maintainer: Hong Shick Pak <hong@hspak.com> pkgname=zur-git -pkgver=0.5 +pkgver=0.5.0+3+g49035b5 pkgrel=1 pkgdesc="An AUR helper written in Zig" arch=("x86_64") @@ -14,6 +14,11 @@ conflicts=("$pkgname") source=("git+https://github.com/hspak/zur") sha256sums=("SKIP") +pkgver() { + cd "$(echo $pkgname | cut -d'-' -f1)" + git describe --tags | sed 's/-/+/g' +} + build() { cd "$(echo $pkgname | cut -d'-' -f1)" zig build -Dversion="${pkgver}" -Drelease-safe=true |