nano: Update from 2.8.2 to 2.8.4
[termux-packages] / packages / nano / build.sh
... / ...
CommitLineData
1TERMUX_PKG_HOMEPAGE=https://www.nano-editor.org/
2TERMUX_PKG_DESCRIPTION="Small, free and friendly text editor"
3_MAJOR_VERSION=2.8
4TERMUX_PKG_VERSION=${_MAJOR_VERSION}.4
5TERMUX_PKG_SRCURL=https://www.nano-editor.org/dist/v${_MAJOR_VERSION}/nano-${TERMUX_PKG_VERSION}.tar.gz
6TERMUX_PKG_SHA256=78a2f3b3f6b500fad995c5e207d2816cbd6b531154aa2a3a2bd50c8fdf7dc57f
7TERMUX_PKG_DEPENDS="libandroid-support, libandroid-glob, ncurses"
8TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
9--disable-libmagic
10--enable-utf8
11--with-wordbounds
12"
13TERMUX_PKG_RM_AFTER_INSTALL="bin/rnano share/man/man1/rnano.1 share/nano/man-html"
14
15termux_step_pre_configure() {
16 LDFLAGS+=" -landroid-glob"
17}
18
19termux_step_post_make_install () {
20 # Configure nano to use syntax highlighting:
21 NANORC=$TERMUX_PREFIX/etc/nanorc
22 echo include \"$TERMUX_PREFIX/share/nano/\*nanorc\" > $NANORC
23}