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 name: zig
description: A general-purpose programming language and toolchain for maintaining robust, optimal and reusable software description: A general-purpose programming language and toolchain for maintaining robust, optimal and reusable software
version: 0.15.2 version: 0.15.2
revision: 1 revision: 2
url: https://ziglang.org/ url: https://ziglang.org/
license: MIT license: MIT
architecture: any architecture: any
type: source type: source
depends: depends:
- clang - clang20
- lld - lld20
- llvm-libs - llvm20-libs
make_depends: make_depends:
- cmake - cmake
- llvm - llvm20
downloads: downloads:
- url: https://github.com/ziglang/zig/archive/refs/tags/${BPM_PKG_VERSION}.tar.gz - url: https://github.com/ziglang/zig/archive/refs/tags/${BPM_PKG_VERSION}.tar.gz
extract_to: ${BPM_SOURCE} extract_to: ${BPM_SOURCE}
+10 -7
View File
@@ -5,18 +5,21 @@
# The build function is executed in the source directory # The build function is executed in the source directory
# This function is used to compile the source code # This function is used to compile the source code
build() { build() {
mkdir build cmake -B build \
cd build -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=None \
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 .. -DZIG_PIE=ON \
make -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 # The package function is executed in the source directory
# This function is used to move the compiled files into the output directory # This function is used to move the compiled files into the output directory
package() { package() {
cd build DESTDIR="$BPM_OUTPUT" cmake --install build
make DESTDIR="$BPM_OUTPUT" install
# Install package license
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/zig/LICENSE install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/zig/LICENSE
} }