Update package version to 22.1.4

This commit is contained in:
2026-05-01 13:53:40 +03:00
parent 2197e6d5e7
commit 45e08e4aa9
3 changed files with 25 additions and 36 deletions
+9 -3
View File
@@ -5,18 +5,22 @@
# The prepare function is executed in the root of the temp directory
# This function is used for putting downloaded files to the correct location or applying patches
prepare() {
cd "$BPM_SOURCE"/tools
cd "$BPM_SOURCE"
patch -Np1 -i "$BPM_WORKDIR"/enable-fstack-protector-strong-by-default.patch
}
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
cd "$BPM_SOURCE"/llvm
export CC=gcc CXX=g++
cmake -B build -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_INSTALL_RPATH=ON \
-DLLVM_ENABLE_FFI=ON \
-DLLVM_ENABLE_PROJECTS=clang \
-DLLVM_ENABLE_RUNTIMES=compiler-rt \
-DLLVM_BUILD_LLVM_DYLIB=ON \
-DLLVM_LINK_LLVM_DYLIB=ON \
-DLLVM_ENABLE_RTTI=ON \
@@ -42,10 +46,12 @@ _pick() {
# The package function is executed in the source directory
# This function is used to move the compiled files into the output directory
package_llvm() {
cd llvm
DESTDIR="$BPM_OUTPUT" cmake --install build
# Install missing binary
install -Dm755 "$BPM_SOURCE"/build/bin/FileCheck "$BPM_OUTPUT"/usr/bin/FileCheck
install -Dm755 "$BPM_SOURCE"/llvm/build/bin/FileCheck "$BPM_OUTPUT"/usr/bin/FileCheck
cd "$BPM_OUTPUT"
@@ -97,7 +103,7 @@ package_clang() {
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
install -d "$BPM_OUTPUT"/"$site_packages"
mv "$BPM_OUTPUT"/usr/lib/{libear,libscanbuild} -t "$BPM_OUTPUT"/"$site_packages"
cp -a "$BPM_SOURCE"/tools/clang/bindings/python/clang "$BPM_OUTPUT"/"$site_packages"
cp -a "$BPM_SOURCE"/clang/bindings/python/clang "$BPM_OUTPUT"/"$site_packages"
# Install package license
install -Dm644 "$BPM_SOURCE"/LICENSE.TXT "$BPM_OUTPUT"/usr/share/licenses/clang/LICENSE.TXT