2017-01-22 23:50:26 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.mirbsd.org/jupp.htm
|
2017-02-05 23:49:31 +01:00
|
|
|
TERMUX_PKG_DESCRIPTION="User friendly full screen text editor"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2020-11-10 20:06:46 +01:00
|
|
|
TERMUX_PKG_VERSION=3.1jupp40
|
2018-09-20 23:00:20 +02:00
|
|
|
TERMUX_PKG_SRCURL=http://www.mirbsd.org/MirOS/dist/jupp/joe-${TERMUX_PKG_VERSION}.tgz
|
2020-11-10 20:06:46 +01:00
|
|
|
TERMUX_PKG_SHA256=4bed439cde7f2be294e96e49ef3e913ea90fbe5e914db888403e3a27e8035b1a
|
2020-03-16 15:39:29 +01:00
|
|
|
TERMUX_PKG_DEPENDS="ncurses"
|
|
|
|
TERMUX_PKG_CONFLICTS="joe"
|
2017-09-23 01:46:30 +02:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--disable-getpwnam
|
|
|
|
--disable-termcap
|
|
|
|
--disable-termidx
|
|
|
|
--enable-sysconfjoesubdir=/jupp
|
|
|
|
"
|
2017-01-22 23:50:26 +01:00
|
|
|
|
2020-07-16 23:58:48 +02:00
|
|
|
termux_step_post_get_source() {
|
2017-09-23 01:46:30 +02:00
|
|
|
chmod +x $TERMUX_PKG_SRCDIR/configure
|
2017-01-22 23:50:26 +01: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/jupp 10
|
|
|
|
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/jupp
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
EOF
|
|
|
|
}
|