2018-08-19 19:58:43 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://github.com/mawww/kakoune
|
|
|
|
TERMUX_PKG_DESCRIPTION="Code editor heavily inspired by Vim"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="Unlicense"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2021-08-28 08:19:42 +02:00
|
|
|
TERMUX_PKG_VERSION=2021.08.28
|
2021-10-22 10:01:24 +02:00
|
|
|
TERMUX_PKG_REVISION=1
|
2019-04-27 22:15:58 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/mawww/kakoune/releases/download/v$TERMUX_PKG_VERSION/kakoune-$TERMUX_PKG_VERSION.tar.bz2
|
2021-08-28 08:19:42 +02:00
|
|
|
TERMUX_PKG_SHA256=6f6ed7dfd8c5723210dbd848708acf03af4b847016fd3ede96b2a89ad32276cb
|
2021-10-04 12:43:31 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
2019-06-19 23:00:21 +02:00
|
|
|
TERMUX_PKG_DEPENDS="libc++, ncurses"
|
2019-08-12 17:28:41 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2020-09-02 21:51:12 +02:00
|
|
|
TERMUX_PKG_EXTRA_MAKE_ARGS=" -C src debug=no "
|
2019-07-02 00:42:58 +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/kak 45
|
|
|
|
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/kak
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
EOF
|
|
|
|
}
|