From 15f15d85b4414daa9c7034b7eb7f1c6e4794b7e0 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Mon, 8 Sep 2025 21:47:29 +0300 Subject: [PATCH] Update package version to 2.9.0 --- check-version.sh | 12 ++++++++++++ pkg.info | 3 +-- source.sh | 8 +------- 3 files changed, 14 insertions(+), 9 deletions(-) create mode 100644 check-version.sh diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..f280741 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Git repository +REPO="https://git.kernel.org/pub/scm/linux/kernel/git/legion/kbd.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 'v[0-9]{1,}\.[0-9]{1,}(\.[0-9]{1,})?$' | tail -n1) + +# 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 84cfa18..13885eb 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,6 @@ name: kbd description: Keytable files and keyboard utilities -version: 2.6.4 -revision: 3 +version: 2.9.0 url: https://kbd-project.org/ license: GPL architecture: any diff --git a/source.sh b/source.sh index c05b306..62b1366 100644 --- a/source.sh +++ b/source.sh @@ -19,16 +19,10 @@ build() { sed -i '/RESIZECONS_PROGS=/s/yes/no/' configure sed -i 's/resizecons.8 //' docs/man/man8/Makefile.in - ./configure --prefix=/usr --sysconfdir=/etc --datadir=/usr/share/kbd + ./configure --prefix=/usr --sysconfdir=/etc --datadir=/usr/share/kbd --disable-tests make } -# The check function is executed in the source directory -# This function is used to run tests to verify the package has been compiled correctly -check() { - make check -} - # The package function is executed in the source directory # This function is used to move the compiled files into the output directory package() {