26 lines
779 B
Bash
26 lines
779 B
Bash
# Template file for 'zig'
|
|
pkgname=zig
|
|
version=0.10.1
|
|
revision=3
|
|
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="clang15 llvm15 lld15-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=69459bc804333df077d441ef052ffa143d53012b655a51f04cfef1414c04168c
|
|
nopie=yes
|
|
nocross=yes
|
|
|
|
export CMAKE_GENERATOR="Unix Makefiles"
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|