emacs: use termux_step_install_service_scripts for service script

This commit is contained in:
Henrik Grimler 2020-01-05 15:07:26 +01:00
parent 02deaa800b
commit 1773d73f9e

View File

@ -8,7 +8,7 @@ TERMUX_PKG_SHA256=4d90e6751ad8967822c6e092db07466b9d383ef1653feb2f95c93e7de66d34
TERMUX_PKG_DEPENDS="ncurses, gnutls, libxml2"
TERMUX_PKG_BREAKS="emacs-dev"
TERMUX_PKG_REPLACES="emacs-dev"
TERMUX_PKG_CONFFILES="var/service/emacsd/run var/service/emacsd/log/run"
TERMUX_PKG_SERVICE_SCRIPT=("emacsd" 'exec emacs --fg-daemon 2>&1')
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--disable-autodepend
--with-gif=no
@ -84,17 +84,6 @@ termux_step_post_configure() {
termux_step_post_make_install() {
cp $TERMUX_PKG_BUILDER_DIR/site-init.el $TERMUX_PREFIX/share/emacs/${TERMUX_PKG_VERSION}/lisp/emacs-lisp/
# Setup emacs --daemon service script
mkdir -p $TERMUX_PREFIX/var/service
cd $TERMUX_PREFIX/var/service
mkdir -p emacsd/log
echo "#!$TERMUX_PREFIX/bin/sh" > emacsd/run
echo 'exec emacs --fg-daemon 2>&1' >> emacsd/run
chmod +x emacsd/run
touch emacsd/down
ln -sf $TERMUX_PREFIX/share/termux-services/svlogger emacsd/log/run
}
termux_step_create_debscripts() {