23 lines
623 B
Plaintext
23 lines
623 B
Plaintext
# 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
|
|
}
|