diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..e4abde8 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Github repository +REPO="alsa-project/alsa-lib" + +# 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 3b76f26..140ecad 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,6 @@ name: alsa-lib description: The Advanced Linux Sound Architecture -version: 1.2.11 +version: 1.2.14 url: https://www.alsa-project.org/wiki/Main_Page license: LGPL2.1-or-later architecture: any diff --git a/source.sh b/source.sh index 6e00e92..b5015c5 100644 --- a/source.sh +++ b/source.sh @@ -10,6 +10,11 @@ FILENAME="${DOWNLOAD##*/}" prepare() { wget "$DOWNLOAD" tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" + + cd "$BPM_SOURCE" + # Remove test that fails with GCC-15 + sed -i 's/playmidi1//' test/Makefile.am + autoreconf -fi } # The build function is executed in the source directory