summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorHong Shick Pak2021-04-11 13:52:55 -0700
committerHong Shick Pak2021-04-11 13:52:55 -0700
commit27ad16b904d41776c2619168e1b0dcd948857e05 (patch)
treed71162497832327c2ddbf12ae9d2d4e1d078b8d4
parentadad04e1e01708ca671e6ced4c65165bd69e4159 (diff)
downloadaur-zur-git.tar.gz
fix git version
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD7
2 files changed, 9 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 368332e2a37..6b8c5310191 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index 22e9cf18b8e..3d0cee1bca5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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