diff options
-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 |