Update package version to 21.1.4
This commit is contained in:
+4
-1
@@ -3,8 +3,11 @@
|
|||||||
# Github repository
|
# Github repository
|
||||||
REPO="llvm/llvm-project"
|
REPO="llvm/llvm-project"
|
||||||
|
|
||||||
|
# Get LLVM major version number
|
||||||
|
LLVM_VERSION=$(bpm q -d llvm | grep "^Version: " | awk '{print $2}' | cut -d'.' -f1)
|
||||||
|
|
||||||
# Get tag name using Github Rest API
|
# Get tag name using Github Rest API
|
||||||
TAG_NAME=$(curl -s -L -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/"$REPO"/tags | jq -r '.[].name' | grep 'llvmorg-20.*' | head -n1)
|
TAG_NAME=$(curl -s -L -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/"$REPO"/tags | jq -r '.[].name' | grep "llvmorg-${LLVM_VERSION}.*" | head -n1)
|
||||||
|
|
||||||
# Get version number from tag name
|
# Get version number from tag name
|
||||||
VERSION=$(echo "$TAG_NAME" | rev | cut -d'-' -f1 | rev)
|
VERSION=$(echo "$TAG_NAME" | rev | cut -d'-' -f1 | rev)
|
||||||
|
|||||||
@@ -1,8 +1,20 @@
|
|||||||
name: libclc
|
name: libclc
|
||||||
description: Open Source implementation of the library requirements of the OpenCL C programming language
|
description: Open Source implementation of the library requirements of the OpenCL C programming language
|
||||||
version: 20.1.8
|
version: 21.1.4
|
||||||
|
revision: 1
|
||||||
url: https://libclc.llvm.org/
|
url: https://libclc.llvm.org/
|
||||||
license: NCSA OR MIT
|
license: NCSA OR MIT
|
||||||
architecture: any
|
architecture: any
|
||||||
make_depends: ["clang","llvm","cmake","ninja","python3","spirv-llvm-translator"]
|
|
||||||
type: source
|
type: source
|
||||||
|
make_depends:
|
||||||
|
- clang
|
||||||
|
- llvm
|
||||||
|
- cmake
|
||||||
|
- ninja
|
||||||
|
- python3
|
||||||
|
- spirv-llvm-translator
|
||||||
|
downloads:
|
||||||
|
- url: https://github.com/llvm/llvm-project/releases/download/llvmorg-${BPM_PKG_VERSION}/libclc-${BPM_PKG_VERSION}.src.tar.xz
|
||||||
|
extract_to: ${BPM_SOURCE}
|
||||||
|
extract_strip_components: 1
|
||||||
|
checksum: 2311128b86ae95b4319341671a8ec93950928d0bc4fa13d0e6a97d7a65507aaa
|
||||||
|
|||||||
@@ -2,32 +2,18 @@
|
|||||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
# 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
|
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||||
|
|
||||||
DOWNLOAD="https://github.com/llvm/llvm-project/releases/download/llvmorg-${BPM_PKG_VERSION}/libclc-${BPM_PKG_VERSION}.src.tar.xz"
|
|
||||||
FILENAME="${DOWNLOAD##*/}"
|
|
||||||
|
|
||||||
# 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() {
|
|
||||||
wget "$DOWNLOAD"
|
|
||||||
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
|
|
||||||
}
|
|
||||||
|
|
||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
mkdir build
|
cmake -B build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -G Ninja
|
||||||
cd build
|
cmake --build build
|
||||||
|
|
||||||
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -G Ninja ..
|
|
||||||
ninja
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# The package function is executed in the source directory
|
# The package function is executed in the source directory
|
||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
cd build
|
DESTDIR="$BPM_OUTPUT" cmake --install build
|
||||||
|
|
||||||
DESTDIR="$BPM_OUTPUT" ninja install
|
|
||||||
|
|
||||||
install -Dm644 ../LICENSE.TXT "$BPM_OUTPUT"/usr/share/licenses/libclc/LICENSE.TXT
|
# Install package license
|
||||||
|
install -Dm644 "$BPM_SOURCE"/LICENSE.TXT "$BPM_OUTPUT"/usr/share/licenses/libclc/LICENSE.TXT
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user