From 774b47ad53a5de021d145c7741a1b7f7021b838f Mon Sep 17 00:00:00 2001 From: Alexander Hill Date: Mon, 12 Jan 2026 21:30:32 -0500 Subject: [PATCH] Built nano --- STATUS.md | 2 +- bootstrap.sh | 1 + rootbuild.sh | 3 ++- sources/nano/nano.spec | 17 +++++++++++++++++ 4 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 sources/nano/nano.spec diff --git a/STATUS.md b/STATUS.md index 442347d..6f68b55 100644 --- a/STATUS.md +++ b/STATUS.md @@ -44,7 +44,7 @@ Definitions: | `mawk` | Yes | Yes | | `muon` | Yes | Yes | | `musl` | Yes | Yes | -| `nano` | +| `nano` | Yes | Yes | | `nasm` | Yes | Yes | | `ncurses` | Yes | Yes | | `nftables` | diff --git a/bootstrap.sh b/bootstrap.sh index af77a3b..4318d57 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -267,6 +267,7 @@ SOURCES=( mawk muon musl + nano nasm ncurses patch diff --git a/rootbuild.sh b/rootbuild.sh index 9fd01e1..91145a5 100755 --- a/rootbuild.sh +++ b/rootbuild.sh @@ -36,9 +36,10 @@ echo "Done!" # NOTE: dash requires flex and mawk to build. ~ahill # NOTE: libelf requires zlib to build. ~ahill # NOTE: fortune-mod requires cmake to build. ~ahill +# NOTE: nano requires ncurses to build. ~ahill cd /maple LAYER0="bc byacc bzip2 coreutils diffutils findutils grep gzip kmod libressl m4 make mawk muon musl ncurses patch perl pkgconf sed tar xz zlib" -LAYER1="autoconf automake flex groff libarchive libelf libtool linux" +LAYER1="autoconf automake flex groff libarchive libelf libtool linux nano" LAYER2="dash nasm cmake fortune-mod" PACKAGES="$LAYER0 $LAYER1 $LAYER2" for pkg in $PACKAGES; do diff --git a/sources/nano/nano.spec b/sources/nano/nano.spec new file mode 100644 index 0000000..eaed708 --- /dev/null +++ b/sources/nano/nano.spec @@ -0,0 +1,17 @@ +# Maintainer: Alexander Hill +SRC_HASH="afd287aa672c48b8e1a93fdb6c6588453d527510d966822b687f2835f0d986e9" +SRC_NAME="nano" +SRC_URL="https://www.nano-editor.org/dist/v8/nano-8.7.tar.xz" +SRC_VERSION="8.7" + +build() { + tar xf ../$SRC_FILENAME + cd nano-$SRC_VERSION/ + ./configure $TT_AUTOCONF_COMMON --enable-utf8 --enable-year2038 + make -O -j $TT_PROCS +} + +package() { + cd nano-$SRC_VERSION/ + make -O -j $TT_PROCS install DESTDIR=$TT_INSTALLDIR +}