From a1462b965547c516142d2d3c794bb7c6f760a16c Mon Sep 17 00:00:00 2001 From: EnumDev Date: Mon, 1 Sep 2025 17:01:38 +0300 Subject: [PATCH] Update package version to 2.4.12 --- check-version.sh | 12 ++++++++++++ pkg.info | 3 +-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 check-version.sh diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..5c6f986 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Github repository +REPO="OpenPrinting/cups" + +# 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') + +# 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 2c2d777..1a3cd87 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,6 @@ name: cups description: An open-source printing system -version: 2.4.7 -revision: 4 +version: 2.4.12 url: https://openprinting.github.io/cups/ license: Apache2 with LLVM-exception and BSD-3-Clause and Zlib and BSD-2-Clause architecture: any