zig: initial import, version 0.13.0

This commit is contained in:
John McQuah 2024-08-01 11:56:33 +00:00
parent 5f066d70da
commit 8b5a7f3dff
3 changed files with 16407 additions and 0 deletions

16380
zig/.footprint Normal file

File diff suppressed because it is too large Load Diff

5
zig/.signature Normal file
View File

@ -0,0 +1,5 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/WwHgmGVKFAlB2QBhPTXJ2a1FG5xK86pgMVX2HOafUv6rWcaRw7txPFUjzBvQ2nrRL1DHPdHzTgFreY8XnMk9QY=
SHA256 (Pkgfile) = 2d0c1fa81a9d36c51f9ae6588906091f71a609d9451f8c0ecb684e392cb1ff3b
SHA256 (.footprint) = 506ea5a4a5e9f78aa8857f9fc0ac0df814d0be64e77d7a9606e2cdd8f20a740e
SHA256 (zig-0.13.0.tar.xz) = 06c73596beeccb71cc073805bdb9c0e05764128f16478fa53bf17dfabc1d4318

22
zig/Pkgfile Normal file
View File

@ -0,0 +1,22 @@
# Description: compiler for the Zig language
# URL: https://ziglang.org
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: clang lld
name=zig
version=0.13.0
release=1
source=(https://ziglang.org/download/$version/$name-$version.tar.xz)
build() {
cmake -S $name-$version -B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS" \
-DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-Wno-dev
cmake --build build
DESTDIR="$PKG" cmake --install build
find $PKG -name "LICENSE*" -delete
}