From 676abf6467fd6164dd18056934ddd40adca2c6a7 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sun, 11 May 2025 13:02:07 +0300 Subject: [PATCH] Update package version to 668 --- check-version.sh | 8 ++++++++ pkg.info | 6 ++---- source.sh | 12 +++++------- 3 files changed, 15 insertions(+), 11 deletions(-) create mode 100644 check-version.sh diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..c978385 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +URL="https://www.greenwoodsoftware.com/less/" + +# Get version number from tag name +VERSION=$(curl -s -L "$URL" | grep 'The current released version is' | grep -o -E '[0-9]{1,3}') + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index a028eed..131d051 100644 --- a/pkg.info +++ b/pkg.info @@ -1,10 +1,8 @@ name: less description: A free, open-source file pager -version: 643 -revision: 2 +version: 668 url: https://www.greenwoodsoftware.com/less/ -license: GPL3-or-later +license: GPL3-or-later OR custom architecture: any depends: ["glibc","ncurses","pcre2"] -make_depends: ["bash","binutils","coreutils","diffutils","gcc","glibc","grep","make","ncurses","sed"] type: source diff --git a/source.sh b/source.sh index acc5d21..790d8db 100644 --- a/source.sh +++ b/source.sh @@ -15,18 +15,16 @@ prepare() { # The build function is executed in the source directory # This function is used to compile the source code build() { - ./configure --prefix=/usr --sysconfdir=/etc + ./configure --prefix=/usr --sysconfdir=/etc --with-regex=pcre2 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() { make DESTDIR="$BPM_OUTPUT" install + + # Install package licenses + install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/less/LICENSE + install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/less/COPYING }