blob: 47eeaeec9d4c1d12c47c78c23ac5bf6ccd6003d7 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
# Maintainer: Xiang Chen <iflygo@outlook.com>
pkgname=zigup
pkgver=2024.05.05.r8.g67643d6
pkgrel=1
pkgdesc='Download and manage Zig compilers'
arch=('x86_64')
url='https://github.com/marler8997/zigup'
license=('MIT-0')
depends=('tar')
makedepends=('git' 'zig')
options=('!debug')
_commit='67643d63359502d8dab9628ad071c61837a55b02'
source=("$pkgname::git+$url#commit=$_commit")
b2sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --tags | sed -e 's/^v//' -e 's/_/./g' -e 's/-/.r/' -e 's/-/./g'
}
build() {
cd "$pkgname"
zig build --release=fast
}
# check() {
# cd "$pkgname"
#
# zig build test
# }
package() {
cd "$pkgname"
# binary
install -vDm755 -t "$pkgdir/usr/bin" zig-out/bin/zigup
# documentation
install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
# license
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}
|