37375312b9
In issue https://github.com/termux/termux-packages/issues/6160 I have found that community repo "its-pointless.github.io" specifies us as maintainer for its packages. This is NOT TRUE and potentially misleads people using these packages. Now TERMUX_PKG_MAINTAINER will contain a default value which is neutral and not specify maintainer. So all packages now have to override it to the correct value. [skip ci] %ci:no-build
41 lines
1.3 KiB
Bash
41 lines
1.3 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/zile/
|
|
TERMUX_PKG_DESCRIPTION="Lightweight clone of the Emacs text editor"
|
|
TERMUX_PKG_LICENSE="GPL-3.0"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION=2.4.15
|
|
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/zile/zile-${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=39c300a34f78c37ba67793cf74685935a15568e14237a3a66fda8fcf40e3035e
|
|
TERMUX_PKG_DEPENDS="libgc, ncurses"
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
ac_cv_header_spawn_h=no
|
|
"
|
|
|
|
termux_step_post_configure() {
|
|
# 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
|
|
touch -d "next hour" $TERMUX_PKG_BUILDDIR/doc/zile.1*
|
|
}
|
|
|
|
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
|
|
}
|