X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/59f0d218a6ff34c80cf898f6d7ac62555ba8eb11..9bcd2ca977c7f396bc3412517397a136d88f4410:/packages/emacs/build.sh diff --git a/packages/emacs/build.sh b/packages/emacs/build.sh index 24f2aded..1ae3acf6 100644 --- a/packages/emacs/build.sh +++ b/packages/emacs/build.sh @@ -1,6 +1,7 @@ TERMUX_PKG_HOMEPAGE=http://www.gnu.org/software/emacs/ TERMUX_PKG_DESCRIPTION="Extensible, customizable text editor—and more" TERMUX_PKG_VERSION=24.5 +TERMUX_PKG_BUILD_REVISION=1 TERMUX_PKG_SRCURL=http://ftp.gnu.org/pub/gnu/emacs/emacs-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_DEPENDS="ncurses" TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--without-x --with-xpm=no --with-jpeg=no --with-png=no --with-gif=no --with-tiff=no --without-gconf --without-gsettings --without-all" @@ -45,10 +46,6 @@ termux_step_host_build () { make } -termux_step_pre_configure () { - export CANNOT_DUMP=yes -} - termux_step_post_configure () { cp $TERMUX_PKG_HOSTBUILD_DIR/src/bootstrap-emacs $TERMUX_PKG_BUILDDIR/src/bootstrap-emacs cp $TERMUX_PKG_HOSTBUILD_DIR/lib-src/make-docfile $TERMUX_PKG_BUILDDIR/lib-src/make-docfile @@ -58,8 +55,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 }