distribution/packages/tools/nano/package.mk

40 lines
1.1 KiB
Makefile
Raw Normal View History

2022-02-05 14:23:32 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="nano"
2022-08-30 02:39:25 +00:00
PKG_VERSION="6.4"
PKG_SHA256="4199ae8ca78a7796de56de1a41b821dc47912c0307e9816b56cc317df34661c0"
2022-02-05 14:23:32 +00:00
PKG_LICENSE="GPL"
2022-08-30 02:39:25 +00:00
PKG_SITE="https://www.nano-editor.org/"
PKG_URL="https://www.nano-editor.org/dist/v6/${PKG_NAME}-${PKG_VERSION}.tar.xz"
2022-02-05 14:23:32 +00:00
PKG_DEPENDS_TARGET="toolchain ncurses"
PKG_LONGDESC="Nano is an enhanced clone of the Pico text editor."
PKG_CONFIGURE_OPTS_TARGET="--disable-utf8 \
--disable-nls \
--disable-libmagic \
--disable-wrapping"
post_makeinstall_target() {
rm -rf ${INSTALL}/usr/share/nano
mkdir -p ${INSTALL}/etc
cp -a ${PKG_DIR}/config/* ${INSTALL}/etc/
2022-08-30 02:39:25 +00:00
mkdir -p ${INSTALL}/usr/share/nano
2022-02-05 14:23:32 +00:00
for FILE_TYPES in \
css \
html \
java \
javascript \
json \
php \
python \
sh \
xml
do
cp -a ${PKG_BUILD}/syntax/${FILE_TYPES}.nanorc ${INSTALL}/usr/share/nano/
done
}