summaryrefslogtreecommitdiff
path: root/package/nano/nano.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/nano/nano.mk')
-rw-r--r--package/nano/nano.mk24
1 files changed, 24 insertions, 0 deletions
diff --git a/package/nano/nano.mk b/package/nano/nano.mk
new file mode 100644
index 000000000..3e8ba5066
--- /dev/null
+++ b/package/nano/nano.mk
@@ -0,0 +1,24 @@
+#############################################################
+#
+# nano
+#
+#############################################################
+
+NANO_VERSION = 2.2.3
+NANO_SITE = http://www.nano-editor.org/dist/v2.2
+NANO_MAKE_ENV = CURSES_LIB="-lncurses"
+NANO_CONF_OPT = --without-slang --enable-tiny
+NANO_DEPENDENCIES = ncurses
+
+$(eval $(call AUTOTARGETS,package,nano))
+
+$(NANO_TARGET_INSTALL_TARGET):
+ $(call MESSAGE,"Installing to target")
+ $(INSTALL) -m 0755 $(NANO_DIR)/src/nano \
+ $(TARGET_DIR)/usr/bin/nano
+ touch $@
+
+$(NANO_TARGET_UNINSTALL):
+ $(call MESSAGE,"Uninstalling")
+ rm -f $(TARGET_DIR)/usr/bin/nano
+ rm -f $(NANO_TARGET_INSTALL_TARGET) $(NANO_HOOK_POST_INSTALL)