From 9d5fac473251bbb3d64ca200adff4508dc9d9d6f Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sun, 2 Nov 2025 12:03:36 +0200 Subject: [PATCH] Update package version to 21.1.2 --- check-version.sh | 5 ++++- pkg.info | 14 +++++++++++--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/check-version.sh b/check-version.sh index fb83257..fc9e344 100644 --- a/check-version.sh +++ b/check-version.sh @@ -3,8 +3,11 @@ # Github repository REPO="KhronosGroup/SPIRV-LLVM-Translator" +# 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 -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 '^v20' | 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 "^v${LLVM_VERSION}" | head -n1) # Trim 'v' character in TAG_NAME variable VERSION=$(echo "$TAG_NAME" | tr -d 'v') diff --git a/pkg.info b/pkg.info index 7546659..a269039 100644 --- a/pkg.info +++ b/pkg.info @@ -1,9 +1,17 @@ name: spirv-llvm-translator description: A tool and a library for bi-directional translation between SPIR-V and LLVM IR -version: 20.1.5 +version: 21.1.2 +revision: 1 url: https://github.com/KhronosGroup/SPIRV-LLVM-Translator license: LicenseRef-custom architecture: any -depends: ["libxml2","llvm-libs","spirv-tools"] -make_depends: ["cmake","llvm","ninja","spirv-headers"] type: source +depends: + - libxml2 + - llvm-libs + - spirv-tools +make_depends: + - cmake + - llvm + - ninja + - spirv-headers