From de21354dbf72735161f497a5c7edfc514a5e54df Mon Sep 17 00:00:00 2001 From: EnumDev Date: Fri, 15 Aug 2025 15:54:02 +0300 Subject: [PATCH] Update package version to 6.15 --- check-version.sh | 12 ++++++++++++ pkg.info | 3 +-- source.sh | 9 +++++---- 3 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 check-version.sh diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..1ef82de --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Git repository +REPO="https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git" + +# Get tag name using 'git ls-remote' +TAG_NAME=$(git ls-remote --exit-code --refs --tags --sort='v:refname' "$REPO" | tail -1 | cut -d'/' -f3) + +# Get version number from tag name +VERSION=$(echo "$TAG_NAME" | rev | cut -d'-' -f1 | rev) + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index 9395e01..d593d2f 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,6 @@ name: man-pages description: Linux manual pages -version: 6.06 -revision: 3 +version: 6.15 url: https://www.kernel.org/doc/man-pages/ license: Linux-man-pages-1-para,Linux-man-pages-copyleft,Linux-man-pages-copyleft-var,Linux-man-pages-copyleft-2-para,BSD-2-Clause,BSD-3-Clause,BSD-4-Clause-UC,GPL1-or-later,GPL2-only,GPL2-or-later,MIT architecture: any diff --git a/source.sh b/source.sh index 590a841..24537cd 100644 --- a/source.sh +++ b/source.sh @@ -11,15 +11,16 @@ prepare() { echo "$DOWNLOAD" wget "$DOWNLOAD" tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" + + # Libxcrypt manpages are instaleld through the 'libxcrypt' package rm "$BPM_SOURCE"/man3/crypt* } # The package function is executed in the source directory # This function is used to move the compiled files into the output directory package() { - make prefix=/usr DESTDIR="$BPM_OUTPUT" install + make -R GIT=false prefix=/usr DESTDIR="$BPM_OUTPUT" install - for license in LICENSES/*; do - install -Dm644 $license -t "$BPM_OUTPUT"/usr/share/licenses/man-pages/ - done + # Install package licences + install -Dm644 LICENSES/* -t "$BPM_OUTPUT"/usr/share/licenses/man-pages/ }