Commit | Line | Data |
---|---|---|
59f0d218 FF |
1 | TERMUX_PKG_HOMEPAGE=http://www.mutt.org/ |
2 | TERMUX_PKG_DESCRIPTION="Mail client" | |
a79f1752 | 3 | TERMUX_PKG_VERSION=1.5.24 |
33d16b56 | 4 | TERMUX_PKG_BUILD_REVISION=2 |
59f0d218 | 5 | TERMUX_PKG_SRCURL=https://bitbucket.org/mutt/mutt/downloads/mutt-${TERMUX_PKG_VERSION}.tar.gz |
33d16b56 FF |
6 | TERMUX_PKG_DEPENDS="libandroid-support, ncurses, gdbm, openssl, libsasl" |
7 | 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" | |
9c471bdd FF |
8 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-exec-shell=$TERMUX_PREFIX/bin/sh" |
9 | # The mutt autoconf guesses no for working (v)snprintf and uses broken local versions - avoid that: | |
10 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" mutt_cv_c99_snprintf=yes mutt_cv_c99_vsnprintf=yes" | |
11 | # TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-sasl" | |
12 | # bin/{flea,muttbug}: File bug against mutt: | |
13 | TERMUX_PKG_RM_AFTER_INSTALL="bin/flea bin/muttbug" | |
14 | ||
15 | termux_step_post_configure () { | |
16 | # Build wants to run mutt_md5 at build time: | |
17 | gcc -D'uint32_t=unsigned int' -DMD5UTIL $TERMUX_PKG_SRCDIR/md5.c -o $TERMUX_PKG_BUILDDIR/mutt_md5 | |
18 | $TERMUX_TOUCH -d "next hour" $TERMUX_PKG_BUILDDIR/mutt_md5 | |
19 | } | |
59f0d218 FF |
20 | |
21 | termux_step_post_make_install () { | |
22 | cp $TERMUX_PKG_SRCDIR/doc/mutt.man $TERMUX_PREFIX/share/man/man1/mutt.1.man | |
23 | } |