blob: b3bc7d66ee8b99d7527f09753e53e31541eb3c3a (
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.646+14d8a1c10
pkgname=zig-dev-bin
pkgver=20210726
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=(
'930ed9128e9763f7fe90297a102db9a391035db79c8a1159fdf52faf8ca9dddd'
)
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"
}
|