diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..20c0adc --- /dev/null +++ b/check-version.sh @@ -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" diff --git a/pkg.info b/pkg.info index 1cbee87..35b30d6 100644 --- a/pkg.info +++ b/pkg.info @@ -1,8 +1,8 @@ name: lld description: Linker from the LLVM project -version: 17.0.6 +version: 20.1.7 url: https://lld.llvm.org/ -license: custom +license: Apache-2.0 WITH LLVM-exception architecture: any depends: ["gcc","llvm","zlib","zstd"] make_depends: ["cmake","ninja"] diff --git a/source.sh b/source.sh index f44ff8a..1cfea09 100644 --- a/source.sh +++ b/source.sh @@ -51,13 +51,6 @@ build() { ninja } -# The check function is executed in the source directory -# This function is used to run tests to verify the package has been compiled correctly -check() { - cd build - ninja check-lld -} - # The package function is executed in the source directory # This function is used to move the compiled files into the output directory package() {