diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..1be84b2 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Gitlab repository +REPO="cairo/cairo" + +# 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.freedesktop.org/api/v4/projects/"$REPO"/repository/tags | jq -r '.[0].name') + +echo "$TAG_NAME" diff --git a/pkg.info b/pkg.info index 84ac771..f03f77d 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,6 @@ name: cairo description: 2D graphics library with support for multiple output devices -version: 1.18.2 +version: 1.18.4 url: https://cairographics.org/ license: LGPL2.1-only or MPL-1.1 architecture: any