2015-11-15 22:43:01 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/zile/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Lightweight clone of the Emacs 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"
|
2020-11-22 21:52:14 +01:00
|
|
|
TERMUX_PKG_VERSION=2.4.15
|
2016-09-25 00:42:39 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/zile/zile-${TERMUX_PKG_VERSION}.tar.gz
|
2020-11-22 21:52:14 +01:00
|
|
|
TERMUX_PKG_SHA256=39c300a34f78c37ba67793cf74685935a15568e14237a3a66fda8fcf40e3035e
|
2015-11-15 22:43:01 +01:00
|
|
|
TERMUX_PKG_DEPENDS="libgc, ncurses"
|
2019-08-12 17:28:41 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2019-10-06 17:52:24 +02:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
ac_cv_header_spawn_h=no
|
|
|
|
"
|
2015-11-15 22:43:01 +01:00
|
|
|
|
2017-01-06 02:37:45 +01:00
|
|
|
termux_step_post_configure() {
|
2015-11-15 22:43:01 +01:00
|
|
|
# zile uses help2man to build the zile.1 man page, which would require
|
|
|
|
# a host build. To avoid that just copy a pre-built man page.
|
|
|
|
cp $TERMUX_PKG_BUILDER_DIR/zile.1 $TERMUX_PKG_BUILDDIR/doc/zile.1
|
2017-04-18 08:19:48 +02:00
|
|
|
touch -d "next hour" $TERMUX_PKG_BUILDDIR/doc/zile.1*
|
2015-11-15 22:43:01 +01:00
|
|
|
}
|
2019-08-10 21:34:54 +02:00
|
|
|
|
|
|
|
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/zile 35
|
|
|
|
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/zile
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
EOF
|
|
|
|
}
|