diff --git a/cfg/alix/SQUASHFS b/cfg/alix/SQUASHFS index f6b4959..1e5e1df 100644 --- a/cfg/alix/SQUASHFS +++ b/cfg/alix/SQUASHFS @@ -1,3 +1,4 @@ coreutils bash rootfs +nano diff --git a/cfg/rpi3/SQUASHFS b/cfg/rpi3/SQUASHFS index f341ec9..cf7d074 100644 --- a/cfg/rpi3/SQUASHFS +++ b/cfg/rpi3/SQUASHFS @@ -3,3 +3,4 @@ bash rootfs linux_modules firmware-rpi3 +nano diff --git a/pkg/nano/build b/pkg/nano/build new file mode 100644 index 0000000..2596d1b --- /dev/null +++ b/pkg/nano/build @@ -0,0 +1,28 @@ +VERSION="2.9.2" +SRCDIR="nano-${VERSION}" +TARBALL="${SRCDIR}.tar.xz" +URL="https://ftp.gnu.org/gnu/nano/" +SHA256SUM="4eccb7451b5729ce8abae8f9a5679f32e41ae58df73ea86b850ec45b10a83d55" + +prepare() { + return +} + +build() { + local INPUT="$1" + local OUTPUT="$2" + + $INPUT/configure --prefix="" --host="$TARGET" --enable-utf8 + + make -j $NUMJOBS +} + +deploy() { + local SOURCE="$1" + local BUILD="$2" + local DEPLOY="$3" + + make DESTDIR="$DEPLOY" install-strip + + rm -r "$DEPLOY/share/" +} diff --git a/pkg/nano/depends b/pkg/nano/depends new file mode 100644 index 0000000..6a470ff --- /dev/null +++ b/pkg/nano/depends @@ -0,0 +1 @@ +ncurses