net-tools: Bump revision after patch
[termux-packages] / packages / nano / build.sh
CommitLineData
73dfe59c 1TERMUX_PKG_HOMEPAGE=https://www.nano-editor.org/
59f0d218 2TERMUX_PKG_DESCRIPTION="Small, free and friendly text editor"
b09d0268 3_MAJOR_VERSION=2.8
a79ce479 4TERMUX_PKG_VERSION=${_MAJOR_VERSION}.6
73dfe59c 5TERMUX_PKG_SRCURL=https://www.nano-editor.org/dist/v${_MAJOR_VERSION}/nano-${TERMUX_PKG_VERSION}.tar.gz
a79ce479 6TERMUX_PKG_SHA256=3725aa145880223b2c4d0b3fa08220e1633f2d341917f49d028e067fc12cce49
31c7ebba 7TERMUX_PKG_DEPENDS="libandroid-support, libandroid-glob, ncurses"
b09d0268
FF
8TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
9--disable-libmagic
10--enable-utf8
11--with-wordbounds
12"
59f0d218
FF
13TERMUX_PKG_RM_AFTER_INSTALL="bin/rnano share/man/man1/rnano.1 share/nano/man-html"
14
385c8aef
FF
15termux_step_pre_configure() {
16 LDFLAGS+=" -landroid-glob"
17}
59f0d218
FF
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}