diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..06d7ae3 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Github repository +REPO="webmproject/libvpx" + +# 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 '.[0].name') + +# 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 7b8bfa9..bf1cc82 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,6 @@ name: libvpx description: VP8/VP9 Codec SDK -version: 1.14.0 -revision: 2 +version: 1.15.2 url: https://www.webmproject.org/ license: custom architecture: any diff --git a/source.sh b/source.sh index 27639c4..de738b0 100644 --- a/source.sh +++ b/source.sh @@ -22,7 +22,7 @@ build() { # 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() { - make test + LD_LIBRARY_PATH=. make test } # The package function is executed in the source directory