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