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