Update package version to 22.1.4

This commit is contained in:
2026-05-01 13:53:54 +03:00
parent 959f56cd50
commit b4440c7c73
2 changed files with 11 additions and 25 deletions
+6 -10
View File
@@ -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}