Commit | Line | Data |
---|---|---|
73dfe59c | 1 | TERMUX_PKG_HOMEPAGE=https://www.nano-editor.org/ |
59f0d218 | 2 | TERMUX_PKG_DESCRIPTION="Small, free and friendly text editor" |
76a1e4cd FF |
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 | |
31c7ebba | 6 | TERMUX_PKG_DEPENDS="libandroid-support, libandroid-glob, ncurses" |
b09d0268 FF |
7 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" |
8 | --disable-libmagic | |
9 | --enable-utf8 | |
10 | --with-wordbounds | |
11 | " | |
59f0d218 FF |
12 | TERMUX_PKG_RM_AFTER_INSTALL="bin/rnano share/man/man1/rnano.1 share/nano/man-html" |
13 | ||
385c8aef FF |
14 | termux_step_pre_configure() { |
15 | LDFLAGS+=" -landroid-glob" | |
16 | } | |
59f0d218 FF |
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 | } |