termux-elf-cleaner: Move to standalone repo
[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
FF
3_MAJOR_VERSION=2.8
4TERMUX_PKG_VERSION=${_MAJOR_VERSION}.0
73dfe59c 5TERMUX_PKG_SRCURL=https://www.nano-editor.org/dist/v${_MAJOR_VERSION}/nano-${TERMUX_PKG_VERSION}.tar.gz
b09d0268 6TERMUX_PKG_SHA256=0b7b434805e5e343d2fef75804fc61c59323641d8c8e63d3027b4ac442689136
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}