From 105b7edb56bf95f495b57f26a9e7afd186616909 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 15 Jan 2018 01:05:03 +0100 Subject: [PATCH] Add less package Signed-off-by: David Oberhollenzer --- cfg/alix/SQUASHFS | 1 + cfg/rpi3/SQUASHFS | 1 + pkg/less/build | 32 ++++++++++++++++++++++++++++++++ pkg/less/depends | 1 + 4 files changed, 35 insertions(+) create mode 100755 pkg/less/build create mode 100644 pkg/less/depends diff --git a/cfg/alix/SQUASHFS b/cfg/alix/SQUASHFS index bcc47b1..467161c 100644 --- a/cfg/alix/SQUASHFS +++ b/cfg/alix/SQUASHFS @@ -4,3 +4,4 @@ rootfs nano util-linux grep +less diff --git a/cfg/rpi3/SQUASHFS b/cfg/rpi3/SQUASHFS index 8759f18..3b5734e 100644 --- a/cfg/rpi3/SQUASHFS +++ b/cfg/rpi3/SQUASHFS @@ -7,3 +7,4 @@ nano util-linux kmod grep +less diff --git a/pkg/less/build b/pkg/less/build new file mode 100755 index 0000000..7a44a5f --- /dev/null +++ b/pkg/less/build @@ -0,0 +1,32 @@ +VERSION="487" +SRCDIR="less-${VERSION}" +TARBALL="${SRCDIR}.tar.gz" +URL="https://ftp.gnu.org/gnu/less/" +SHA256SUM="f3dc8455cb0b2b66e0c6b816c00197a71bf6d1787078adeee0bcf2aea4b12706" + +prepare() { + return +} + +build() { + local INPUT="$1" + local OUTPUT="$2" + + $INPUT/configure --prefix="" --host="$TARGET" --with-regex=regcmp + + make -j $NUMJOBS +} + +deploy() { + local SOURCE="$1" + local BUILD="$2" + local DEPLOY="$3" + + make DESTDIR="$DEPLOY" install + + ${TARGET}-strip --discard-all ${DEPLOY}/bin/less + ${TARGET}-strip --discard-all ${DEPLOY}/bin/lesskey + ${TARGET}-strip --discard-all ${DEPLOY}/bin/lessecho + + rm -r "$DEPLOY/share" +} diff --git a/pkg/less/depends b/pkg/less/depends new file mode 100644 index 0000000..6a470ff --- /dev/null +++ b/pkg/less/depends @@ -0,0 +1 @@ +ncurses