From 66c326b6d65388e9f1003715ad9675505f01f9d2 Mon Sep 17 00:00:00 2001 From: davidovski Date: Fri, 3 Jun 2022 13:05:13 +0100 Subject: added porting from alpine linux --- repo/nano/nano.xibuild | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 repo/nano/nano.xibuild (limited to 'repo/nano/nano.xibuild') diff --git a/repo/nano/nano.xibuild b/repo/nano/nano.xibuild new file mode 100644 index 0000000..dcca53b --- /dev/null +++ b/repo/nano/nano.xibuild @@ -0,0 +1,38 @@ +#!/bin/sh + +NAME="nano" +DESC="Enhanced clone of the Pico text editor" + +MAKEDEPS=" ncurses" + +PKG_VER=6.2 +SOURCE="https://www.nano-editor.org/dist/v${PKG_VER%%.*}/nano-$PKG_VER.tar.xz" +build() { + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --disable-libmagic \ + --disable-nls + make +} + +check() { + make check +} + +package() { + make DESTDIR="$PKG_DEST" install + install -Dm644 doc/sample.nanorc \ + "$PKG_DEST"/etc/nanorc + + # Proper syntax highlighting for APKBUILDs + sed -i "/syntax/s/\"$/\" \"APKBUILD&/" \ + "$PKG_DEST"/usr/share/nano/sh.nanorc + + rm -rf "$PKG_DEST"/usr/lib/charset.alias +} + -- cgit v1.2.1