termux-packages/packages/mutt/build.sh

53 lines
1.5 KiB
Bash
Raw Normal View History

2015-06-13 01:03:31 +02:00
TERMUX_PKG_HOMEPAGE=http://www.mutt.org/
TERMUX_PKG_DESCRIPTION="Mail client with patches from neomutt"
2019-01-21 13:53:58 +01:00
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
2021-05-05 15:53:03 +02:00
TERMUX_PKG_VERSION=2.0.7
TERMUX_PKG_SRCURL=ftp://ftp.mutt.org/pub/mutt/mutt-${TERMUX_PKG_VERSION}.tar.gz
2021-05-05 15:53:03 +02:00
TERMUX_PKG_SHA256=957688c6a521561992d4f2f27cf9feb239c7c6c0042c6061c0e474a7dd26cc91
TERMUX_PKG_DEPENDS="libandroid-support, ncurses, gdbm, openssl, libsasl, mime-support, zlib, libiconv"
2020-05-11 11:31:56 +02:00
TERMUX_PKG_BUILD_IN_SRC=true
2019-05-26 20:32:54 +02:00
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
mutt_cv_c99_snprintf=yes
mutt_cv_c99_vsnprintf=yes
--disable-gpgme
--enable-compressed
--enable-hcache
--enable-imap
--enable-pop
--enable-sidebar
--enable-smtp
--with-exec-shell=$TERMUX_PREFIX/bin/sh
--with-mailpath=$TERMUX_PREFIX/var/mail
--without-idn
--with-sasl
--with-ssl
"
2019-05-26 20:32:54 +02:00
if $TERMUX_DEBUG; then
export TERMUX_PKG_EXTRA_CONFIGURE_ARGS+="--enable-debug"
fi
TERMUX_PKG_RM_AFTER_INSTALL="
bin/flea
bin/muttbug
share/man/man1/muttbug.1
share/man/man1/flea.1
2020-05-11 11:31:56 +02:00
etc/mime.types.dist
"
2019-05-26 20:32:54 +02:00
TERMUX_PKG_CONFFILES="etc/Muttrc"
termux_step_post_configure() {
2020-05-11 11:31:56 +02:00
# Build wants to run mutt_md5:
gcc -DHAVE_STDINT_H -DMD5UTIL $TERMUX_PKG_SRCDIR/md5.c -o $TERMUX_PKG_BUILDDIR/mutt_md5
2020-05-11 11:31:56 +02:00
touch -d "next hour" $TERMUX_PKG_BUILDDIR/mutt_md5
}
2015-06-13 01:03:31 +02:00
termux_step_post_make_install() {
2016-12-11 03:46:57 +01:00
cp $TERMUX_PKG_SRCDIR/doc/mutt.man $TERMUX_PREFIX/share/man/man1/mutt.1.man
mkdir -p $TERMUX_PREFIX/share/examples/mutt/
2018-07-30 03:08:10 +02:00
cp $TERMUX_PKG_SRCDIR/contrib/gpg.rc $TERMUX_PREFIX/share/examples/mutt/gpg.rc
2015-06-13 01:03:31 +02:00
}