| 1 | TERMUX_PKG_HOMEPAGE=http://www.mutt.org/ |
| 2 | TERMUX_PKG_DESCRIPTION="Mail client with patches from neomutt" |
| 3 | TERMUX_PKG_VERSION=1.9.1 |
| 4 | TERMUX_PKG_SHA256=749b83a96373c6e2101ebe8c4b9a651735e02c478edb750750a5146a15d91bb1 |
| 5 | TERMUX_PKG_SRCURL=ftp://ftp.mutt.org/pub/mutt/mutt-${TERMUX_PKG_VERSION}.tar.gz |
| 6 | TERMUX_PKG_DEPENDS="libandroid-support, ncurses, gdbm, openssl, libsasl, mime-support" |
| 7 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" |
| 8 | mutt_cv_c99_snprintf=yes |
| 9 | mutt_cv_c99_vsnprintf=yes |
| 10 | --disable-gpgme |
| 11 | --enable-compressed |
| 12 | --enable-hcache |
| 13 | --enable-imap |
| 14 | --enable-pop |
| 15 | --enable-sidebar |
| 16 | --enable-smtp |
| 17 | --with-exec-shell=$TERMUX_PREFIX/bin/sh |
| 18 | --with-mailpath=$TERMUX_PREFIX/var/mail |
| 19 | --without-idn |
| 20 | --with-sasl |
| 21 | --with-ssl |
| 22 | " |
| 23 | TERMUX_PKG_RM_AFTER_INSTALL=" |
| 24 | bin/flea |
| 25 | bin/muttbug |
| 26 | share/man/man1/muttbug.1 |
| 27 | share/man/man1/flea.1 |
| 28 | etc/mime.types |
| 29 | " |
| 30 | TERMUX_PKG_CONFFILES="etc/Muttrc" |
| 31 | |
| 32 | termux_step_post_configure () { |
| 33 | # Build wants to run mutt_md5 and makedoc: |
| 34 | gcc -DHAVE_STDINT_H -DMD5UTIL $TERMUX_PKG_SRCDIR/md5.c -o $TERMUX_PKG_BUILDDIR/mutt_md5 |
| 35 | gcc -DHAVE_STRERROR $TERMUX_PKG_SRCDIR/doc/makedoc.c -o $TERMUX_PKG_BUILDDIR/doc/makedoc |
| 36 | touch -d "next hour" $TERMUX_PKG_BUILDDIR/mutt_md5 $TERMUX_PKG_BUILDDIR/doc/makedoc |
| 37 | } |
| 38 | |
| 39 | termux_step_post_make_install () { |
| 40 | cp $TERMUX_PKG_SRCDIR/doc/mutt.man $TERMUX_PREFIX/share/man/man1/mutt.1.man |
| 41 | mkdir -p $TERMUX_PREFIX/share/examples/mutt/ |
| 42 | cp $TERMUX_PKG_BUILDER_DIR/gpg{,2}.rc $TERMUX_PREFIX/share/examples/mutt/ |
| 43 | mv $TERMUX_PREFIX/etc/mime.types.dist $TERMUX_PREFIX/etc/mime.types |
| 44 | mv $TERMUX_PREFIX/etc/Muttrc.dist $TERMUX_PREFIX/etc/Muttrc |
| 45 | } |