diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..a56969d --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Gitlab repository +REPO="gnutls/gnutls" + +# 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.com/api/v4/projects/"$REPO"/repository/tags | jq -r '.[0].name') + +echo "$TAG_NAME" diff --git a/pkg.info b/pkg.info index fd0c571..7573047 100644 --- a/pkg.info +++ b/pkg.info @@ -1,9 +1,8 @@ name: gnutls description: A secure communications library -version: 3.8.3 -revision: 2 +version: 3.8.10 url: https://www.gnutls.org/ license: GPL3-or-later and LGPL2.1-or-later architecture: any -depends: ["gcc-libs", "glibc", "gmp", "libidn2", "p11-kit", "libtasn1", "libunistring", "nettle", "zlib", "zstd"] +depends: ["brotli","gcc-libs", "glibc", "gmp", "libidn2", "p11-kit", "libtasn1", "libunistring", "nettle", "zlib", "zstd"] type: source diff --git a/source.sh b/source.sh index 6ed6800..10f3101 100644 --- a/source.sh +++ b/source.sh @@ -30,5 +30,5 @@ check() { package() { make DESTDIR="$BPM_OUTPUT" install - install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/gnutls/LICENSE + install -Dm644 "$BPM_SOURCE"/COPYING.LESSERv2 "$BPM_OUTPUT"/usr/share/licenses/gnutls/COPYING.LESSERv2 }