Commit | Line | Data |
---|---|---|
59f0d218 | 1 | TERMUX_PKG_HOMEPAGE=http://www.mutt.org/ |
fdca4d35 | 2 | TERMUX_PKG_DESCRIPTION="Mail client with patches from neomutt" |
0c5f963e FF |
3 | TERMUX_PKG_VERSION=1.9.2 |
4 | TERMUX_PKG_SHA256=a2e152a352bbf02d222d54074199d9c53821c19f700c4cb85f78fa85faed7896 | |
3d335c3a | 5 | TERMUX_PKG_SRCURL=ftp://ftp.mutt.org/pub/mutt/mutt-${TERMUX_PKG_VERSION}.tar.gz |
d3594e89 | 6 | TERMUX_PKG_DEPENDS="libandroid-support, ncurses, gdbm, openssl, libsasl, mime-support" |
d153533e FF |
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 | " | |
d3594e89 FF |
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" | |
fdca4d35 | 31 | |
9c471bdd | 32 | termux_step_post_configure () { |
fdca4d35 FF |
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 | |
2f122eed | 36 | touch -d "next hour" $TERMUX_PKG_BUILDDIR/mutt_md5 $TERMUX_PKG_BUILDDIR/doc/makedoc |
9c471bdd | 37 | } |
59f0d218 FF |
38 | |
39 | termux_step_post_make_install () { | |
25e058f3 | 40 | cp $TERMUX_PKG_SRCDIR/doc/mutt.man $TERMUX_PREFIX/share/man/man1/mutt.1.man |
ea999747 | 41 | mkdir -p $TERMUX_PREFIX/share/examples/mutt/ |
0be9fb04 | 42 | cp $TERMUX_PKG_BUILDER_DIR/gpg{,2}.rc $TERMUX_PREFIX/share/examples/mutt/ |
67082132 | 43 | mv $TERMUX_PREFIX/etc/mime.types.dist $TERMUX_PREFIX/etc/mime.types |
b6039de1 | 44 | mv $TERMUX_PREFIX/etc/Muttrc.dist $TERMUX_PREFIX/etc/Muttrc |
59f0d218 | 45 | } |