36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
TERMUX_PKG_HOMEPAGE=http://ne.di.unimi.it/
|
|
TERMUX_PKG_DESCRIPTION="Easy-to-use and powerful text editor"
|
|
TERMUX_PKG_LICENSE="GPL-3.0"
|
|
TERMUX_PKG_MAINTAINER="David Martínez @vaites"
|
|
TERMUX_PKG_VERSION=3.2.1
|
|
TERMUX_PKG_SRCURL=https://github.com/vigna/ne/archive/${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=6b9324d9a4c3deef02f4ecf75407f5b5ed4e68a3bb4af3f9c1ea19dc628f9b5d
|
|
TERMUX_PKG_DEPENDS="libandroid-support, ncurses"
|
|
TERMUX_PKG_RM_AFTER_INSTALL="info/"
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
termux_step_pre_configure() {
|
|
export OPTS="$CFLAGS $CPPFLAGS"
|
|
}
|
|
|
|
termux_step_create_debscripts() {
|
|
cat <<- EOF > ./postinst
|
|
#!$TERMUX_PREFIX/bin/sh
|
|
if [ "\$1" = "configure" ] || [ "\$1" = "abort-upgrade" ]; then
|
|
if [ -x "$TERMUX_PREFIX/bin/update-alternatives" ]; then
|
|
update-alternatives --install \
|
|
$TERMUX_PREFIX/bin/editor editor $TERMUX_PREFIX/bin/ne 15
|
|
fi
|
|
fi
|
|
EOF
|
|
|
|
cat <<- EOF > ./prerm
|
|
#!$TERMUX_PREFIX/bin/sh
|
|
if [ "\$1" != "upgrade" ]; then
|
|
if [ -x "$TERMUX_PREFIX/bin/update-alternatives" ]; then
|
|
update-alternatives --remove editor $TERMUX_PREFIX/bin/ne
|
|
fi
|
|
fi
|
|
EOF
|
|
}
|