New package: zig-0.5.0.
Provided by @duncaen in #475 Restrict build to x86_64 (native) because the build failed on i686 and cross builds. ENOTIME to investigate. The ziglang is mature enough to be packaged, see pkgsrc and/or nix. Close #475
This commit is contained in:
parent
e4218cfd2f
commit
3b96bf886e
1 changed files with 26 additions and 0 deletions
26
srcpkgs/zig/template
Normal file
26
srcpkgs/zig/template
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
# Template file for 'zig'
|
||||||
|
pkgname=zig
|
||||||
|
version=0.5.0
|
||||||
|
revision=1
|
||||||
|
archs="x86_64*"
|
||||||
|
build_style=cmake
|
||||||
|
configure_args="-DZIG_STATIC=FALSE"
|
||||||
|
hostmakedepends="clang llvm9"
|
||||||
|
makedepends="libxml2-devel ncurses-devel zlib-devel"
|
||||||
|
short_desc="Programming language designed for robustness, optimality, and clarity"
|
||||||
|
maintainer="Duncaen <duncaen@voidlinux.org>"
|
||||||
|
license="MIT"
|
||||||
|
homepage="https://ziglang.org/"
|
||||||
|
distfiles="https://ziglang.org/download/${version}/zig-${version}.tar.xz"
|
||||||
|
checksum=55ae16960f152bcb9cf98b4f8570902d0e559a141abf927f0d3555b7cc838a31
|
||||||
|
nopie=yes
|
||||||
|
nocross=yes
|
||||||
|
|
||||||
|
post_extract() {
|
||||||
|
# don't install build artefacts
|
||||||
|
vsed -i -e '/${ZIG_CPP_LIB_DIR}/d' CMakeLists.txt
|
||||||
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vlicense LICENSE
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue