Update package version to 18.1.7

This commit is contained in:
2025-05-08 13:42:42 +03:00
parent ad3108be59
commit 40e6dd041f
4 changed files with 30 additions and 14 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
# Github repository
REPO="llvm/llvm-project"
# Get tag name using Github Rest API
TAG_NAME=$(curl -s -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/"$REPO"/releases/latest | jq -r '.tag_name')
# Get version number from tag name
VERSION=$(echo "$TAG_NAME" | rev | cut -d'-' -f1 | rev)
echo "$VERSION"
+8 -2
View File
@@ -1,9 +1,15 @@
name: llvm
description: A collection of modular and reusable compiler and toolchain technologies
version: 17.0.6
version: 18.1.7
url: https://llvm.org
license: Apache2-with-llvm-exception
architecture: any
depends: ["perl"]
make_depends: ["cmake","libffi","ncurses","ninja","python3","zlib","zstd"]
type: source
split_packages:
- name: llvm
depends: ["perl"]
- name: clang
description: C language family frontend for LLVM
url: https://clang.llvm.org/
depends: ["gcc","llvm"]
-9
View File
@@ -1,9 +0,0 @@
name: clang
description: C language family frontend for LLVM
version: 17.0.6
url: https://clang.llvm.org/
license: Apache2-with-llvm-exception
architecture: any
depends: ["gcc","llvm"]
make_depends: ["cmake","libffi","ncurses","ninja","python3","zlib","zstd"]
type: source
+10 -3
View File
@@ -18,6 +18,7 @@ prepare() {
wget "$DOWNLOAD_CLANG"
wget "$DOWNLOAD_CMAKE_MODULES"
wget "$DOWNLOAD_THIRD_PARTY"
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
tar -xvf "$FILENAME_CLANG" -C "$BPM_SOURCE"/tools
mv "$BPM_SOURCE"/tools/clang-${BPM_PKG_VERSION}.src "$BPM_SOURCE"/tools/clang
@@ -49,12 +50,12 @@ build() {
# The package function is executed in the source directory
# This function is used to move the compiled files into the output directory
package() {
package_llvm() {
cd build
DESTDIR="$BPM_OUTPUT" ninja install
cp bin/FileCheck "$BPM_OUTPUT"/usr/bin
install -Dm644 ../LICENSE.TXT "$BPM_OUTPUT"/usr/share/licenses/llvm/LICENSE.TXT
# Move clang files to another temporary directory
CLANG="$BPM_WORKDIR"/clang-output
mkdir -p "$CLANG"/{usr/bin,usr/lib,usr/lib/cmake/,usr/include,usr/share,usr/share/man/man1}
mv "$BPM_OUTPUT"/usr/bin/{amdgpu-arch,analyze-build,c-index-test,diagtool,git-clang-format,hmaptool,intercept-build,nvptx-arch,scan-build,scan-build-py,scan-view} "$CLANG"/usr/bin
@@ -68,11 +69,17 @@ package() {
mv "$BPM_OUTPUT"/usr/share/man/man1/scan-build.1 -t "$CLANG"/usr/share/man/man1
mv "$BPM_OUTPUT"/usr/share/scan-build -t "$CLANG"/usr/share
mv "$BPM_OUTPUT"/usr/share/scan-view -t "$CLANG"/usr/share
# Install package license
install -Dm644 ../LICENSE.TXT "$BPM_OUTPUT"/usr/share/licenses/llvm/LICENSE.TXT
}
package-clang() {
package_clang() {
# Move clang files to 'output' diorectory
CLANG="$BPM_WORKDIR"/clang-output
rmdir "$BPM_OUTPUT"
mv "$CLANG" "$BPM_OUTPUT"
# Install package license
install -Dm644 "$BPM_SOURCE"/LICENSE.TXT "$BPM_OUTPUT"/usr/share/licenses/clang/LICENSE.TXT
}