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
42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://www.mirbsd.org/jupp.htm
|
|
TERMUX_PKG_DESCRIPTION="User friendly full screen text editor"
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION=3.1jupp40
|
|
TERMUX_PKG_SRCURL=http://www.mirbsd.org/MirOS/dist/jupp/joe-${TERMUX_PKG_VERSION}.tgz
|
|
TERMUX_PKG_SHA256=4bed439cde7f2be294e96e49ef3e913ea90fbe5e914db888403e3a27e8035b1a
|
|
TERMUX_PKG_DEPENDS="ncurses"
|
|
TERMUX_PKG_CONFLICTS="joe"
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
--disable-dependency-tracking
|
|
--disable-getpwnam
|
|
--disable-termcap
|
|
--disable-termidx
|
|
--enable-sysconfjoesubdir=/jupp
|
|
"
|
|
|
|
termux_step_post_get_source() {
|
|
chmod +x $TERMUX_PKG_SRCDIR/configure
|
|
}
|
|
|
|
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/jupp 10
|
|
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/jupp
|
|
fi
|
|
fi
|
|
EOF
|
|
}
|