blob: bf08e6aec78bbeb10507e3b855a5153bd9468908 (
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
|
# Maintainer: Kaizhao Zhang <zhangkaizhao@gmail.com>
_buildver=0.9.0-dev.474+95e5fac41
pkgname=zig-dev-bin
pkgver=20210719
pkgrel=1
pkgdesc="A general-purpose programming language and toolchain for maintaining robust, optimal, and reusable software"
arch=('x86_64')
url="https://ziglang.org/"
license=('MIT')
options=('!strip')
provides=('zig')
conflicts=('zig')
source=(
"https://ziglang.org/builds/zig-linux-x86_64-${_buildver}.tar.xz"
)
sha256sums=(
'cba5bdb272d343af9f33ac5be856fa8907027160206c8fadfddefd72b28a630e'
)
package() {
cd "${srcdir}/zig-linux-x86_64-${_buildver}"
install -d "${pkgdir}/usr/bin"
install -d "${pkgdir}/usr/lib/zig"
cp -R lib "${pkgdir}/usr/lib/zig/lib"
install -D -m755 zig "${pkgdir}/usr/lib/zig/zig"
ln -s /usr/lib/zig/zig "${pkgdir}/usr/bin/zig"
install -D -m644 docs/langref.html "${pkgdir}/usr/share/doc/zig/langref.html"
cp -R docs/std "${pkgdir}/usr/share/doc/zig/"
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/zig/LICENSE"
}
|