29 lines
919 B
Bash
29 lines
919 B
Bash
# Template file for 'zig'
|
|
pkgname=zig
|
|
# We temporarily package a master branch snapshot as the latest release
|
|
# (0.7.1) requires llvm11. Zig 0.8.0 is planned to be released on 31.5.
|
|
_upstream_version=0.8.0-dev.2275+8467373bb
|
|
version=0.8.0pre1
|
|
revision=1
|
|
archs="x86_64* aarch64*"
|
|
wrksrc="zig-${_upstream_version}"
|
|
build_style=cmake
|
|
# Upstream's version handling for master builds relies on the git repo
|
|
configure_args="-DZIG_VERSION=${_upstream_version}"
|
|
make_cmd=make
|
|
makedepends="clang llvm12 lld-devel"
|
|
short_desc="Programming language designed for robustness, optimality, and clarity"
|
|
maintainer="Isaac Freund <ifreund@ifreund.xyz>"
|
|
license="MIT"
|
|
homepage="https://ziglang.org"
|
|
distfiles="${homepage}/builds/zig-${_upstream_version}.tar.xz"
|
|
checksum=2ac91466d8a02e82eff6d89181a36b3377c3b0ec9b8a739e1fd2fdf3c173785f
|
|
nopie=yes
|
|
nocross=yes
|
|
|
|
export CMAKE_GENERATOR="Unix Makefiles"
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|