blob: 32bd12d5d48f28a88ff9ca48689a604d02b32cd1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Maintainer: Hong Shick Pak <hong@hspak.com>
pkgname=zur
pkgver=0.7.1
pkgrel=1
pkgdesc="An AUR helper written in Zig"
arch=("x86_64")
url="https://github.com/hspak/zur"
license=("MIT")
depends=("pacman")
makedepends=("zig" "git")
provides=("$pkgname")
conflicts=("$pkgname" "$pkgname-git")
source=("https://github.com/hspak/${pkgname}/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=("bf856948ea3e1f4aa5d4b4b7bf8ba7c7f88b396435a81cc23967259d484d6ed8")
build() {
cd "${pkgname}-${pkgver}"
zig build -Dversion="${pkgver}" --release=safe
}
check() {
cd "${pkgname}-${pkgver}"
zig-out/bin/zur --version
}
package() {
cd "${pkgname}-${pkgver}"
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
|