Update dependencies

This commit is contained in:
2025-11-02 17:14:54 +02:00
parent cc86c483ac
commit 58636e98d9
2 changed files with 15 additions and 12 deletions
+5 -5
View File
@@ -1,18 +1,18 @@
name: zig
description: A general-purpose programming language and toolchain for maintaining robust, optimal and reusable software
version: 0.15.2
revision: 1
revision: 2
url: https://ziglang.org/
license: MIT
architecture: any
type: source
depends:
- clang
- lld
- llvm-libs
- clang20
- lld20
- llvm20-libs
make_depends:
- cmake
- llvm
- llvm20
downloads:
- url: https://github.com/ziglang/zig/archive/refs/tags/${BPM_PKG_VERSION}.tar.gz
extract_to: ${BPM_SOURCE}
+10 -7
View File
@@ -5,18 +5,21 @@
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DZIG_PIE=ON -DZIG_SHARED_LLVM=ON -DZIG_USE_LLVM_CONFIG=ON -DZIG_TARGET_TRIPLE=native-linux.6.1-gnu.2.38 -DZIG_TARGET_MCPU=baseline ..
make
cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=None \
-DZIG_PIE=ON \
-DZIG_SHARED_LLVM=ON \
-DZIG_USE_LLVM_CONFIG=ON \
-DZIG_TARGET_MCPU=baseline
cmake --build build
}
# The package function is executed in the source directory
# This function is used to move the compiled files into the output directory
package() {
cd build
make DESTDIR="$BPM_OUTPUT" install
DESTDIR="$BPM_OUTPUT" cmake --install build
# Install package license
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/zig/LICENSE
}