diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..39c1bea --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Git repository +REPO="git://git.gnupg.org/libassuan.git" + +# Get tag name using 'git ls-remote' +TAG_NAME=$(git ls-remote --exit-code --refs --tags --sort='v:refname' "$REPO" | cut -d'/' -f3 | grep -E '^libassuan-[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}' | tail -n1) + +# Trim prefix +VERSION=${TAG_NAME//libassuan-/} + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index a141cc0..049fb55 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,6 @@ name: libassuan description: Assuan protocol implementation -version: 2.5.6 +version: 3.0.2 url: https://www.gnupg.org/related_software/libassuan/ license: FSFULLR,GPL2-or-later,LGPL2.1-or-later architecture: any