From c4d026dd62edd53faec639f6e9d918cdab11594e Mon Sep 17 00:00:00 2001 From: EnumDev Date: Fri, 19 Sep 2025 11:32:39 +0300 Subject: [PATCH] Update package version to 1.8 --- 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..bb3b748 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Git repository +REPO="git://git.gnupg.org/npth.git" + +# Get tag name using 'git ls-remote' +TAG_NAME=$(git ls-remote --exit-code --refs --tags --sort='v:refname' "$REPO" | cut -d'/' -f3 | grep -E '^npth-[0-9]{1,}\.[0-9]{1,}' | tail -n1) + +# Trim prefix +VERSION=${TAG_NAME//npth-/} + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index 3362938..cc1fdec 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,6 @@ name: npth description: The New GNU Portable Threads Library -version: 1.6 +version: 1.8 url: https://www.gnupg.org/software/npth/index.html license: LGPL2.1-or-later architecture: any