diff --git a/packages/emacs/build.sh b/packages/emacs/build.sh index 24f2adeda..e1ea24ebd 100644 --- a/packages/emacs/build.sh +++ b/packages/emacs/build.sh @@ -58,8 +58,8 @@ termux_step_post_configure () { termux_step_post_make_install () { rm $TERMUX_PREFIX/bin/emacs $TERMUX_PREFIX/bin/emacs-$TERMUX_PKG_VERSION - echo "#!/system/bin/sh" > $TERMUX_PREFIX/bin/emacs - echo "exec temacs -l loadup" >> $TERMUX_PREFIX/bin/emacs + echo "#!/$TERMUX_PREFIX/bin/sh" > $TERMUX_PREFIX/bin/emacs + echo "exec temacs -l loadup \$@" >> $TERMUX_PREFIX/bin/emacs chmod +x $TERMUX_PREFIX/bin/emacs cp $TERMUX_PKG_BUILDDIR/src/temacs $TERMUX_PREFIX/bin/temacs }