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() {