-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
79 lines (65 loc) · 1.97 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#
# Copyright (C) 2007-2016 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=nano
PKG_VERSION:=8.3
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@GNU/nano
PKG_HASH:=551b717b2e28f7e90f749323686a1b5bbbd84cfa1390604d854a3ca3778f111e
PKG_LICENSE:=GPL-3.0-or-later
PKG_LICENSE_FILES:=COPYING
PKG_MAINTAINER:=Jonathan Bennett <[email protected]>, Hannu Nyman <[email protected]>
PKG_CPE_ID:=cpe:/a:gnu:nano
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
define Package/nano-c
SUBMENU:=Editors
SECTION:=utils
CATEGORY:=Utilities
TITLE:=An enhanced clone of the Pico text editor
URL:=https://www.nano-editor.org/
DEPENDS:=+libncurses +zlib +libmagic
endef
define Package/nano-c/description
Nano (Nano's ANOther editor, or Not ANOther editor) is an enhanced clone
of the Pico text editor, color highlight enabled.
endef
CONFIGURE_ARGS += \
--enable-help \
--enable-linenumbers \
--enable-multibuffer \
--enable-utf8 \
--enable-color \
--enable-nanorc \
--without-slang \
--disable-option-checking \
--disable-dependency-tracking \
--disable-nls \
--disable-operatingdir \
--disable-browser \
--disable-justify \
--disable-mouse \
--disable-speller \
--disable-extra \
--disable-tabcomp \
--disable-wordcomp
CONFIGURE_VARS += \
ac_cv_header_regex_h=no \
define Package/nano-c/conffiles
/etc/nanorc
endef
define Package/nano-c/install
$(INSTALL_DIR) $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
$(INSTALL_DIR) $(1)/etc $(1)/usr/share/nano
$(INSTALL_DATA) ./files/nanorc $(1)/etc/nanorc
$(INSTALL_DATA) ./files/uci.nanorc $(1)/usr/share/nano
$(CP) $(PKG_INSTALL_DIR)/usr/share/nano/* $(1)/usr/share/nano
endef
$(eval $(call BuildPackage,nano-c))