diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..e285d95 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# Sourceforge project +REPO="giflib" + +# Get version using best_release.json +VERSION=$(curl -s -L https://sourceforge.net/projects/"$REPO"/best_release.json | jq -r '.platform_releases.linux.filename') + +# Remove prefix +VERSION=${VERSION//\/giflib-/} + +# Remove suffix +VERSION=${VERSION//.tar.gz/} + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index cba84fe..717448d 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,6 @@ name: giflib description: GIF image manipulation library -version: 5.2.1 +version: 5.2.2 url: http://giflib.sourceforge.net/ license: MIT architecture: any