|
@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/emacs/ |
|
|
TERMUX_PKG_DESCRIPTION="Extensible, customizable text editor-and more" |
|
|
TERMUX_PKG_DESCRIPTION="Extensible, customizable text editor-and more" |
|
|
TERMUX_PKG_LICENSE="GPL-3.0" |
|
|
TERMUX_PKG_LICENSE="GPL-3.0" |
|
|
TERMUX_PKG_VERSION=26.2 |
|
|
TERMUX_PKG_VERSION=26.2 |
|
|
TERMUX_PKG_REVISION=2 |
|
|
TERMUX_PKG_REVISION=3 |
|
|
TERMUX_PKG_SHA256=151ce69dbe5b809d4492ffae4a4b153b2778459de6deb26f35691e1281a9c58e |
|
|
|
|
|
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/emacs/emacs-${TERMUX_PKG_VERSION}.tar.xz |
|
|
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/emacs/emacs-${TERMUX_PKG_VERSION}.tar.xz |
|
|
|
|
|
TERMUX_PKG_SHA256=151ce69dbe5b809d4492ffae4a4b153b2778459de6deb26f35691e1281a9c58e |
|
|
TERMUX_PKG_DEPENDS="ncurses, gnutls, libxml2" |
|
|
TERMUX_PKG_DEPENDS="ncurses, gnutls, libxml2" |
|
|
TERMUX_PKG_BREAKS="emacs-dev" |
|
|
TERMUX_PKG_BREAKS="emacs-dev" |
|
|
TERMUX_PKG_REPLACES="emacs-dev" |
|
|
TERMUX_PKG_REPLACES="emacs-dev" |
|
@ -84,3 +84,24 @@ termux_step_post_configure() { |
|
|
termux_step_post_make_install() { |
|
|
termux_step_post_make_install() { |
|
|
cp $TERMUX_PKG_BUILDER_DIR/site-init.el $TERMUX_PREFIX/share/emacs/${TERMUX_PKG_VERSION}/lisp/emacs-lisp/ |
|
|
cp $TERMUX_PKG_BUILDER_DIR/site-init.el $TERMUX_PREFIX/share/emacs/${TERMUX_PKG_VERSION}/lisp/emacs-lisp/ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
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/emacs 40 |
|
|
|
|
|
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/emacs |
|
|
|
|
|
fi |
|
|
|
|
|
fi |
|
|
|
|
|
EOF |
|
|
|
|
|
} |
|
|