summaryrefslogtreecommitdiff
path: root/repo/nano
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-03 13:05:13 +0100
committerdavidovski <david@davidovski.xyz>2022-06-03 13:05:13 +0100
commit66c326b6d65388e9f1003715ad9675505f01f9d2 (patch)
tree40d7355cccfa3464902cf339a563e744c28a7101 /repo/nano
parentfccdaa986f67f820df2914bef851d5fed77abac8 (diff)
added porting from alpine linux
Diffstat (limited to 'repo/nano')
-rw-r--r--repo/nano/nano.xibuild38
1 files changed, 38 insertions, 0 deletions
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
+}
+