From 6203e8949f3a3cb14e88d18541b9ce42b1a773eb Mon Sep 17 00:00:00 2001 From: EnumDev Date: Thu, 18 Sep 2025 20:18:48 +0300 Subject: [PATCH] Update package version to 2.03.35 --- check-version.sh | 18 ++++++++++++++++++ pkg.info | 3 +-- 2 files changed, 19 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..ef43550 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# Gitlab repository +REPO="lvmteam/lvm2" + +# 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.com/api/v4/projects/"$REPO"/repository/tags | jq -r '.[0].name') + +# Trim 'v' character in TAG_NAME variable +VERSION=$(echo "$TAG_NAME" | tr -d 'v') + +# Replace '_' with '.' +VERSION=${VERSION//_/.} + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index 0ddf40d..bae5357 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,6 @@ name: lvm2 description: Logical Volume Manager 2 -version: 2.03.23 -revision: 4 +version: 2.03.35 url: https://sourceware.org/lvm2/ license: GPL2,LGPL2.1 architecture: any