2018-04-05 10:41:18 +02:00
|
|
|
VERSION="530"
|
2018-01-15 01:05:03 +01:00
|
|
|
SRCDIR="less-${VERSION}"
|
|
|
|
TARBALL="${SRCDIR}.tar.gz"
|
|
|
|
URL="https://ftp.gnu.org/gnu/less/"
|
2018-04-05 10:41:18 +02:00
|
|
|
SHA256SUM="503f91ab0af4846f34f0444ab71c4b286123f0044a4964f1ae781486c617f2e2"
|
2018-01-24 12:52:41 +01:00
|
|
|
DEPENDS="ncurses"
|
2018-01-15 01:05:03 +01:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2018-09-02 14:19:23 +02:00
|
|
|
run_configure "$1" --with-regex=regcmp
|
2018-01-15 01:05:03 +01:00
|
|
|
make -j $NUMJOBS
|
|
|
|
}
|
|
|
|
|
|
|
|
deploy() {
|
|
|
|
local SOURCE="$1"
|
2018-02-16 23:22:04 +01:00
|
|
|
local DEPLOY="$2"
|
2018-01-15 01:05:03 +01:00
|
|
|
|
|
|
|
make DESTDIR="$DEPLOY" install
|
2019-02-03 17:13:28 +01:00
|
|
|
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$DEPLOY"
|
2018-01-15 01:05:03 +01:00
|
|
|
}
|
2018-05-06 17:23:31 +02:00
|
|
|
|
|
|
|
check_update() {
|
|
|
|
curl --silent -L "$URL" | grep -o ">less-[0-9.]*tar.gz<" | \
|
|
|
|
sed 's/>less-//g' | sed 's/.tar.gz<//g' | \
|
|
|
|
verson_find_greatest "$VERSION"
|
|
|
|
}
|