# nano 9.0 — editor de texto de terminal. Etapa G, tier-2 C. Consumidor de ncurses (TUI real); rendondea # el userland con un editor de verdad. Destrabado por recipes/ncurses.toml. # # Importada de Alpine aports; ajustes: URL fija (`v9/nano-9.0.tar.xz`; el import dejó `${pkgver%%.*}` # sin expandir) + sha256 oficial. El tarball trae `configure`. # # deps.build = ["ncurses", "linux-headers"]: nano usa la API curses widec (-lncursesw) + headers de # Linux. --disable-libmagic (no tenemos libmagic como lib; sólo afecta autodetección de tipo de # fichero) + --disable-nls (sin gettext). gueto gcc (zig-cc miscompila estos C; ver file/jq). link= # static + nano enlaza el binario sin libtool ⇒ LDFLAGS=-static del lab basta (static-pie). # $CBUILD/$CHOST los da el lab (build==host ⇒ nativo). name = "nano" version = "9.0" license = "GPL-3.0-or-later" [source] tarball = "https://www.nano-editor.org/dist/v9/nano-9.0.tar.xz" sha256 = "9f384374b496110a25b73ad5a5febb384783c6e3188b37063f677ac908013fde" [build] compiler = "zig-cc" target = "x86_64-linux-musl" link = "static" [build.phases] configure = "./configure --build=$CBUILD --host=$CHOST --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man --disable-libmagic --disable-nls" compile = "make -j\"$(nproc)\"" install = "make DESTDIR=/out install" [deps] build = ["ncurses", "linux-headers", "make"]