diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..f77498f --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Sourceforge project +REPO="swig" + +# Get version using best_release.json +VERSION=$(curl -s -L https://sourceforge.net/projects/"$REPO"/best_release.json | jq '.platform_releases.linux.filename' | cut -d'/' -f3) + +# Trim prefix +VERSION=${VERSION//swig-/} + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index 2e39355..9de3084 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,6 @@ name: swig description: Software development tool that connects programs written in C and C++ with a variety of high-level programming languages -version: 4.2.1 -revision: 2 +version: 4.3.1 url: https://www.swig.org/ license: GPL3-or-later,LicenseRef-BSD-Arizona,LicenseRef-BSD-Chicago,LicenseRef-BSD-Utah-California architecture: any