summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorHong Shick Pak2021-09-11 16:44:52 -0700
committerHong Shick Pak2021-09-11 16:44:52 -0700
commit5032cc9fa4dd55f6448823c0e1d4ae69ea5625eb (patch)
tree33396bcbc8bcf460dc5cc60ddea6ece0d676d91e
downloadaur-5032cc9fa4dd55f6448823c0e1d4ae69ea5625eb.tar.gz
Publish version 0.6.0
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD38
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..287ac8be3e4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = zur
+ pkgdesc = An AUR helper written in Zig
+ pkgver = 0.6.0
+ pkgrel = 1
+ url = https://github.com/hspak/zur
+ arch = x86_64
+ license = MIT
+ makedepends = zig-git
+ makedepends = git
+ depends = pacman
+ depends = curl
+ provides = zur
+ conflicts = zur
+ conflicts = zur-git
+ source = git+https://github.com/hspak/zur
+ sha256sums = SKIP
+
+pkgname = zur
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e0271b11d52
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Hong Shick Pak <hong@hspak.com>
+
+pkgname=zur
+pkgver=0.6.0
+pkgrel=1
+pkgdesc="An AUR helper written in Zig"
+arch=("x86_64")
+url="https://github.com/hspak/zur"
+license=("MIT")
+depends=("pacman" "curl")
+makedepends=("zig-git" "git")
+provides=("$pkgname")
+conflicts=("$pkgname" "$pkgname-git")
+source=("https://github.com/hspak/${pkgname}/archive/refs/tags/${pkgver}.tar.gz")
+sha256sums=("4ec682852201fc57f0f1938ca55ab38b8ffa319b17b1aaedefeba792c17d6b20")
+
+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
+}
+
+check() {
+ cd "$(echo $pkgname | cut -d'-' -f1)"
+ zig-out/bin/zur --version
+}
+
+package() {
+ cd "$(echo $pkgname | cut -d'-' -f1)"
+ install -D -m 0755 "zig-out/bin/zur" "${pkgdir}/usr/bin/zur"
+ install -D -m 0644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim: ft=sh syn=sh et