diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..9dd8762 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Github repository +REPO="rrthomas/enchant" + +# 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') + +# 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 70aca5f..6c41ecb 100644 --- a/pkg.info +++ b/pkg.info @@ -1,11 +1,10 @@ name: enchant description: Spelling library wrapper with consistent interface -version: 2.8.2 -revision: 2 +version: 2.8.12 url: https://rrthomas.github.io/enchant/ license: LGPL2.1-or-later architecture: any depends: ["gcc-libs", "glib", "glibc"] optional_depends: ["aspell"] -make_depends: ["aspell", "vala", "unittest-cpp"] +make_depends: ["aspell","aspell-en", "vala", "unittest-cpp"] type: source