Commit | Line | Data |
---|---|---|
59f0d218 | 1 | TERMUX_PKG_HOMEPAGE=http://www.mutt.org/ |
fdca4d35 | 2 | TERMUX_PKG_DESCRIPTION="Mail client with patches from neomutt" |
25e058f3 | 3 | TERMUX_PKG_VERSION=1.7.2 |
af4dc416 | 4 | TERMUX_PKG_REVISION=2 |
3d335c3a | 5 | TERMUX_PKG_SRCURL=ftp://ftp.mutt.org/pub/mutt/mutt-${TERMUX_PKG_VERSION}.tar.gz |
25e058f3 | 6 | TERMUX_PKG_SHA256=1553501687cd22d5b8aaee4dc5a7d9dcf6cc61d7956f6aabaadd252d10cd5ff9 |
7a5787d9 | 7 | TERMUX_PKG_DEPENDS="libandroid-support, ncurses, gdbm, openssl, libsasl" |
14a192d0 | 8 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-smtp --enable-imap --enable-pop --with-mailpath=$TERMUX_PREFIX/var/mail --with-ssl --enable-compressed --without-idn --enable-hcache --with-sasl --enable-sidebar" |
9c471bdd FF |
9 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-exec-shell=$TERMUX_PREFIX/bin/sh" |
10 | # The mutt autoconf guesses no for working (v)snprintf and uses broken local versions - avoid that: | |
11 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" mutt_cv_c99_snprintf=yes mutt_cv_c99_vsnprintf=yes" | |
7a5787d9 | 12 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --disable-gpgme" |
9c471bdd FF |
13 | # TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-sasl" |
14 | # bin/{flea,muttbug}: File bug against mutt: | |
fdca4d35 FF |
15 | TERMUX_PKG_RM_AFTER_INSTALL="bin/flea bin/muttbug share/man/man1/muttbug.1 share/man/man1/flea.1" |
16 | ||
9c471bdd | 17 | termux_step_post_configure () { |
fdca4d35 FF |
18 | # Build wants to run mutt_md5 and makedoc: |
19 | gcc -DHAVE_STDINT_H -DMD5UTIL $TERMUX_PKG_SRCDIR/md5.c -o $TERMUX_PKG_BUILDDIR/mutt_md5 | |
20 | gcc -DHAVE_STRERROR $TERMUX_PKG_SRCDIR/doc/makedoc.c -o $TERMUX_PKG_BUILDDIR/doc/makedoc | |
21 | $TERMUX_TOUCH -d "next hour" $TERMUX_PKG_BUILDDIR/mutt_md5 $TERMUX_PKG_BUILDDIR/doc/makedoc | |
9c471bdd | 22 | } |
59f0d218 FF |
23 | |
24 | termux_step_post_make_install () { | |
25e058f3 | 25 | cp $TERMUX_PKG_SRCDIR/doc/mutt.man $TERMUX_PREFIX/share/man/man1/mutt.1.man |
ea999747 FF |
26 | mkdir -p $TERMUX_PREFIX/share/examples/mutt/ |
27 | cp $TERMUX_PKG_BUILDER_DIR/gpg.rc $TERMUX_PREFIX/share/examples/mutt/gpg.rc | |
59f0d218 | 28 | } |