diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..52acd10 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Github repository +REPO="KhronosGroup/SPIRV-LLVM-Translator" + +# 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"/tags | jq -r '.[].name' | grep '^v20' | head -n1) + +# Trim 'v' character in TAG_NAME variable +VERSION=$(echo "$TAG_NAME" | tr -d 'v') + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index bd8eaed..7546659 100644 --- a/pkg.info +++ b/pkg.info @@ -1,9 +1,9 @@ name: spirv-llvm-translator description: A tool and a library for bi-directional translation between SPIR-V and LLVM IR -version: 20.1.4 +version: 20.1.5 url: https://github.com/KhronosGroup/SPIRV-LLVM-Translator license: LicenseRef-custom architecture: any -depends: ["libxml2","llvm","spirv-tools"] -make_depends: ["cmake"] +depends: ["libxml2","llvm-libs","spirv-tools"] +make_depends: ["cmake","llvm","ninja","spirv-headers"] type: source