From e8f75fd5d7eb26680b9891c60f53e775a26cb4b4 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sun, 3 Aug 2025 15:18:27 +0300 Subject: [PATCH] Update package version to 7.1.2_0 --- check-version.sh | 12 ++++++++++++ pkg.info | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 check-version.sh diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..600469e --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Github repository +REPO="ImageMagick/ImageMagick" + +# Get tag name using Github Rest API +TAG_NAME=$(curl -s -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/"$REPO"/releases/latest | jq -r '.tag_name') + +# Replace '-' with '_' +VERSION=$(echo "$TAG_NAME" | tr '-' '_') + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index fb62c9f..6a0fcf2 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,6 @@ name: imagemagick description: FOSS software used for editing and manipulating digital images -version: 7.1.1_28 +version: 7.1.2_0 url: https://imagemagick.org/index.php license: custom architecture: any