From 58636e98d93e4d71099aab6c34d5824114a177c8 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sun, 2 Nov 2025 17:14:54 +0200 Subject: [PATCH] Update dependencies --- pkg.info | 10 +++++----- source.sh | 17 ++++++++++------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/pkg.info b/pkg.info index 9d5fd7c..ef265dd 100644 --- a/pkg.info +++ b/pkg.info @@ -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} diff --git a/source.sh b/source.sh index 05fe8ff..edc7835 100644 --- a/source.sh +++ b/source.sh @@ -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 }