Update package version to 668
This commit is contained in:
@@ -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"
|
||||||
@@ -1,10 +1,8 @@
|
|||||||
name: less
|
name: less
|
||||||
description: A free, open-source file pager
|
description: A free, open-source file pager
|
||||||
version: 643
|
version: 668
|
||||||
revision: 2
|
|
||||||
url: https://www.greenwoodsoftware.com/less/
|
url: https://www.greenwoodsoftware.com/less/
|
||||||
license: GPL3-or-later
|
license: GPL3-or-later OR custom
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["glibc","ncurses","pcre2"]
|
depends: ["glibc","ncurses","pcre2"]
|
||||||
make_depends: ["bash","binutils","coreutils","diffutils","gcc","glibc","grep","make","ncurses","sed"]
|
|
||||||
type: source
|
type: source
|
||||||
|
|||||||
@@ -15,18 +15,16 @@ prepare() {
|
|||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
./configure --prefix=/usr --sysconfdir=/etc
|
./configure --prefix=/usr --sysconfdir=/etc --with-regex=pcre2
|
||||||
make
|
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
|
# The package function is executed in the source directory
|
||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
make DESTDIR="$BPM_OUTPUT" install
|
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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user