blob: 7aa14d86a3ea7bcf1528856e53bf258c78d2d8fa (
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
|
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="A robust, optimal, and maintainable programming language"
HOMEPAGE="https://ziglang.org/"
SRC_URI="
amd64? ( https://ziglang.org/download/${PV}/zig-linux-x86_64-${PV}.tar.xz )
arm? ( https://ziglang.org/download/${PV}/zig-linux-armv7a-${PV}.tar.xz )
arm64? ( https://ziglang.org/download/${PV}/zig-linux-aarch64-${PV}.tar.xz )
x86? ( https://ziglang.org/download/${PV}/zig-linux-i386-${PV}.tar.xz )"
LICENSE="MIT"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm ~arm64 ~x86"
RDEPEND="!dev-lang/zig"
PATCHES=( "${FILESDIR}/${P}-fix-detecting-abi.patch" )
QA_PREBUILT="opt/${P}/zig"
src_unpack() {
unpack ${A}
mv "${WORKDIR}/"* "${S}"
}
src_install() {
insinto /opt/
doins -r "${S}"
dosym -r /opt/${P}/doc/ /usr/share/doc/${PF}
dosym -r /opt/${P}/zig /usr/bin/zig
fperms 0755 /usr/bin/zig
}
|