2021-06-16 17:36:20 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://ne.di.unimi.it/
|
2017-02-05 23:49:31 +01:00
|
|
|
TERMUX_PKG_DESCRIPTION="Easy-to-use and powerful text editor"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-3.0"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2022-04-18 12:49:46 +02:00
|
|
|
TERMUX_PKG_VERSION=3.3.1
|
2019-10-02 21:11:26 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/vigna/ne/archive/${TERMUX_PKG_VERSION}.tar.gz
|
2022-04-18 12:49:46 +02:00
|
|
|
TERMUX_PKG_SHA256=931f01380b48e539b06d65d80ddf313cce67aab6d7b62462a548253ab9b3e10a
|
2016-10-29 21:58:17 +02:00
|
|
|
TERMUX_PKG_DEPENDS="libandroid-support, ncurses"
|
2019-08-12 17:28:41 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2022-04-18 12:49:46 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
|
|
TERMUX_PKG_UPDATE_TAG_TYPE="newest-tag"
|
2016-10-29 21:58:17 +02:00
|
|
|
|
2017-06-06 10:09:52 +02:00
|
|
|
termux_step_pre_configure() {
|
|
|
|
export OPTS="$CFLAGS $CPPFLAGS"
|
2016-10-29 22:07:13 +02:00
|
|
|
}
|
2019-08-10 21:34:54 +02:00
|
|
|
|
|
|
|
termux_step_create_debscripts() {
|
|
|
|
cat <<- EOF > ./postinst
|
|
|
|
#!$TERMUX_PREFIX/bin/sh
|
2021-09-10 18:33:36 +02:00
|
|
|
if [ "$TERMUX_PACKAGE_FORMAT" = "pacman" ] || [ "\$1" = "configure" ] || [ "\$1" = "abort-upgrade" ]; then
|
2019-08-10 21:34:54 +02:00
|
|
|
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
|
2021-09-10 18:33:36 +02:00
|
|
|
if [ "$TERMUX_PACKAGE_FORMAT" = "pacman" ] || [ "\$1" != "upgrade" ]; then
|
2019-08-10 21:34:54 +02:00
|
|
|
if [ -x "$TERMUX_PREFIX/bin/update-alternatives" ]; then
|
|
|
|
update-alternatives --remove editor $TERMUX_PREFIX/bin/ne
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
EOF
|
|
|
|
}
|