termux-packages/packages/mu/build.sh

29 lines
1.2 KiB
Bash
Raw Normal View History

2019-06-03 12:23:22 +02:00
TERMUX_PKG_HOMEPAGE=https://www.djcbsoftware.nl/code/mu/
TERMUX_PKG_DESCRIPTION="Maildir indexer/searcher and Emacs client (mu4e)"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
2022-03-02 01:12:46 +01:00
TERMUX_PKG_VERSION=1.6.10
TERMUX_PKG_SRCURL=https://github.com/djcb/mu/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=0d76f4111d4f60c7f148b0961d6aac72965ad677cf819972debaf833298c9d01
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="emacs, glib, libc++, libxapian, libgmime"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-gtk --disable-webkit"
2022-03-02 01:12:46 +01:00
termux_step_pre_configure() {
autoreconf -fi
}
termux_step_create_debscripts() {
cat <<- EOF > ./postinst
#!$TERMUX_PREFIX/bin/sh
echo "(setq byte-compile-warnings nil)" > $TERMUX_PREFIX/share/emacs/site-lisp/mu4e/nowarnings.el
LC_ALL=C $TERMUX_PREFIX/bin/emacs -no-site-file -q -batch -l $TERMUX_PREFIX/share/emacs/site-lisp/mu4e/nowarnings.el -f batch-byte-compile $TERMUX_PREFIX/share/emacs/site-lisp/mu4e/*.el
rm -f $TERMUX_PREFIX/share/emacs/site-lisp/mu4e/nowarnings.elc
chmod 644 $TERMUX_PREFIX/share/emacs/site-lisp/mu4e/*.elc
EOF
cat <<- EOF > ./prerm
rm -f $TERMUX_PREFIX/share/emacs/site-lisp/mu4e/*.elc
EOF
}