26 lines
791 B
Bash
26 lines
791 B
Bash
# Template file for 'zig'
|
|
pkgname=zig
|
|
version=0.13.0
|
|
revision=1
|
|
archs="x86_64* aarch64*"
|
|
build_style=cmake
|
|
configure_args="-DZIG_TARGET_MCPU=baseline"
|
|
make_cmd=make
|
|
# we add xml2, zstd, zlib and ncurses
|
|
# because our lld is static-only and requires those to work
|
|
makedepends="clang18-devel llvm18-devel lld18-devel libxml2-devel libzstd-devel ncurses-devel zlib-devel"
|
|
short_desc="Programming language designed for robustness, optimality, and clarity"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://ziglang.org"
|
|
distfiles="https://ziglang.org/download/${version}/zig-${version}.tar.xz"
|
|
checksum=06c73596beeccb71cc073805bdb9c0e05764128f16478fa53bf17dfabc1d4318
|
|
nopie=yes
|
|
nocross=yes
|
|
|
|
export CMAKE_GENERATOR="Unix Makefiles"
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|