1
0
This repository has been archived on 2024-11-10. You can view files and clone it, but cannot push or open issues or pull requests.
Lakka-rk322x/packages/tools/nano/package.mk
2021-01-17 06:55:24 +00:00

40 lines
1.1 KiB
Makefile

# 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"
PKG_VERSION="5.5"
PKG_SHA256="390b81bf9b41ff736db997aede4d1f60b4453fbd75a519a4ddb645f6fd687e4a"
PKG_LICENSE="GPL"
PKG_SITE="http://www.nano-editor.org/"
PKG_URL="http://ftpmirror.gnu.org/nano/${PKG_NAME}-${PKG_VERSION}.tar.xz"
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/
mkdir -p ${INSTALL}/usr/share/nano
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
}