diff --git a/check-version.sh b/check-version.sh index c6f0042..8a23dda 100644 --- a/check-version.sh +++ b/check-version.sh @@ -1,10 +1,13 @@ #!/bin/bash -# Github repository -REPO="heftig/rtkit" +# Gitlab repository +REPO="pipewire/rtkit" -# 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"/releases/latest | jq -r '.tag_name') +# Replace slash with URL encoded representation +REPO=$(echo "$REPO" | sed 's|/|%2F|g') + +# Get tag name using Gitlab Rest API +TAG_NAME=$(curl -s -L https://gitlab.freedesktop.org/api/v4/projects/"$REPO"/repository/tags | jq -r '.[0].name') # Trim 'v' character in TAG_NAME variable VERSION=$(echo "$TAG_NAME" | tr -d 'v') diff --git a/pkg.info b/pkg.info index 08e7a01..30d0b29 100644 --- a/pkg.info +++ b/pkg.info @@ -1,13 +1,17 @@ name: rtkit description: Realtime Policy and Watchdog Daemon -version: "0.13" -revision: 2 +version: "0.14" +revision: 1 url: https://github.com/heftig/rtkit license: GPL3-or-later,MIT +maintainers: + - enumdev@enumerated.dev architecture: any type: source depends: - dbus + - glibc + - libcap - elogind - polkit - sysusers @@ -15,7 +19,7 @@ make_depends: - meson - vim downloads: - - url: https://github.com/heftig/rtkit/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz + - url: https://gitlab.freedesktop.org/pipewire/rtkit/-/archive/v${BPM_PKG_VERSION}/rtkit-v${BPM_PKG_VERSION}.tar.gz extract_to: ${BPM_SOURCE} extract_strip_components: 1 - checksum: 0f9508530868109f0348e044cc1b20893672875467ace6d847ba6364274de003 + checksum: 55dd379b11f52b81655e2dc676de9d602d050cb0beb18ef01f0f65569f0a5e59