Merge pull request #17330 from flyn-org/selinux
[feed/packages.git] / utils / nano / Makefile
1 #
2 # Copyright (C) 2007-2016 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=nano
11 PKG_VERSION:=6.0
12 PKG_RELEASE:=$(AUTORELEASE)
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=@GNU/nano
16 PKG_HASH:=93ac8cb68b4ad10e0aaeb80a2dd15c5bb89eb665a4844f7ad01c67efcb169ea2
17
18 PKG_LICENSE:=GPL-3.0-or-later
19 PKG_LICENSE_FILES:=COPYING
20 PKG_MAINTAINER:=Jonathan Bennett <JBennett@incomsystems.biz>, Hannu Nyman <hannu.nyman@iki.fi>
21 PKG_CPE_ID:=cpe:/a:gnu:nano
22
23 PKG_INSTALL:=1
24 PKG_BUILD_PARALLEL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/nano
29 SUBMENU:=Editors
30 SECTION:=utils
31 CATEGORY:=Utilities
32 TITLE:=GNU nano - enhanced clone of the Pico text editor
33 URL:=https://www.nano-editor.org/
34 DEPENDS:=+libncurses
35 endef
36
37 define Package/nano/description
38 Nano is a small and simple text editor for use on the terminal.
39
40 Nano started as an enhanced clone of the Pico text editor.
41 Nowadays Nano wants to be a generally useful editor with sensible
42 defaults (linewise scrolling, no automatic line breaking).
43
44 Nano is an official GNU package.
45 endef
46
47 CONFIGURE_ARGS += \
48 --enable-tiny \
49 --disable-utf8 \
50 --disable-color \
51 --enable-linenumbers
52
53 CONFIGURE_VARS += \
54 ac_cv_header_regex_h=no \
55
56 define Package/nano/install
57 $(INSTALL_DIR) $(1)/usr/bin
58 $(CP) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
59 endef
60
61 $(eval $(call BuildPackage,nano))
62