From b4440c7c731922b17eb038f56cb527ef57e186ad Mon Sep 17 00:00:00 2001 From: EnumDev Date: Fri, 1 May 2026 13:53:54 +0300 Subject: [PATCH] Update package version to 22.1.4 --- pkg.info | 20 +++++--------------- source.sh | 16 ++++++---------- 2 files changed, 11 insertions(+), 25 deletions(-) diff --git a/pkg.info b/pkg.info index b55b66c..5637e89 100644 --- a/pkg.info +++ b/pkg.info @@ -1,9 +1,11 @@ name: lld description: Linker from the LLVM project -version: 21.1.8 +version: 22.1.4 revision: 1 url: https://lld.llvm.org/ license: Apache-2.0 WITH LLVM-exception +maintainers: + - enumdev@enumerated.dev architecture: any type: source depends: @@ -17,19 +19,7 @@ make_depends: - llvm - python-sphinx downloads: - - url: https://github.com/llvm/llvm-project/releases/download/llvmorg-${BPM_PKG_VERSION}/lld-${BPM_PKG_VERSION}.src.tar.xz + - url: https://github.com/llvm/llvm-project/releases/download/llvmorg-${BPM_PKG_VERSION}/llvm-project-${BPM_PKG_VERSION}.src.tar.xz extract_to: ${BPM_SOURCE} extract_strip_components: 1 - checksum: d9524c5ee952500a2af92c27042a0d90ab089962af47816d4c85d0ebf76373d1 - - url: https://github.com/llvm/llvm-project/releases/download/llvmorg-${BPM_PKG_VERSION}/llvm-${BPM_PKG_VERSION}.src.tar.xz - extract_to: llvm - extract_strip_components: 1 - checksum: d9022ddadb40a15015f6b27e6549a7144704ded8828ba036ffe4b8165707de21 - - url: https://github.com/llvm/llvm-project/releases/download/llvmorg-${BPM_PKG_VERSION}/libunwind-${BPM_PKG_VERSION}.src.tar.xz - extract_to: libunwind - extract_strip_components: 1 - checksum: 03e8adc6c3bdde657dcaedc94886ea70d1f7d551d622fcd8a36a8300e5c36cbc - - url: https://github.com/llvm/llvm-project/releases/download/llvmorg-${BPM_PKG_VERSION}/cmake-${BPM_PKG_VERSION}.src.tar.xz - extract_to: cmake - extract_strip_components: 1 - checksum: 85735f20fd8c81ecb0a09abb0c267018475420e93b65050cc5b7634eab744de9 + checksum: 3e68c90dda630c27d41d201e37b8bbf5222e39b273dec5ca880709c69e0a07d4 diff --git a/source.sh b/source.sh index b095dd0..e7d6b61 100644 --- a/source.sh +++ b/source.sh @@ -2,17 +2,11 @@ # BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT -# The prepare function is executed in the root of the temp directory -# This function is used for downloading files and putting them into the correct location -prepare() { - cd "$BPM_SOURCE" - # Fix https://github.com/llvmenv/llvmenv/issues/115 - ln -s ../../libunwind/include/mach-o MachO/mach-o -} - # The build function is executed in the source directory # This function is used to compile the source code build() { + cd lld + cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ @@ -24,17 +18,19 @@ build() { -DLLVM_INCLUDE_TESTS=OFF \ -DLLVM_LINK_LLVM_DYLIB=ON \ -DSPHINX_WARNINGS_AS_ERRORS=OFF \ - -DLLVM_MAIN_SRC_DIR="${BPM_WORKDIR}"/llvm + -DLLVM_MAIN_SRC_DIR="$BPM_SOURCE"/llvm 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 lld + DESTDIR="$BPM_OUTPUT" cmake --install build # Fix https://bugs.llvm.org/show_bug.cgi?id=42455 - install -Dm644 "$BPM_SOURCE"/docs/ld.lld.1 "$BPM_OUTPUT"/usr/share/man/man1/ld.lld.1 + install -Dm644 "$BPM_SOURCE"/lld/docs/ld.lld.1 "$BPM_OUTPUT"/usr/share/man/man1/ld.lld.1 # Remove documentation sources rm -r "$BPM_OUTPUT"/usr/share/doc/lld/html/{_sources,.buildinfo}