| 1 | TERMUX_PKG_HOMEPAGE=http://patches.freeiz.com |
| 2 | TERMUX_PKG_DESCRIPTION="Fast, easy to use email client" |
| 3 | TERMUX_PKG_VERSION=2.21 |
| 4 | TERMUX_PKG_SRCURL=http://alpine.freeiz.com/alpine/release/src/alpine-${TERMUX_PKG_VERSION}.tar.xz |
| 5 | TERMUX_PKG_DEPENDS="libcrypt, ncurses, openssl" |
| 6 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" |
| 7 | --disable-debug |
| 8 | --with-c-client-target=lnx |
| 9 | --without-krb5 |
| 10 | --without-ldap |
| 11 | --without-pthread |
| 12 | --without-tcl |
| 13 | --with-system-pinerc=${TERMUX_PREFIX}/etc/pine.conf |
| 14 | --with-passfile=$TERMUX_ANDROID_HOME/.pine-passfile |
| 15 | " |
| 16 | TERMUX_PKG_BUILD_IN_SRC=yes |
| 17 | TERMUX_PKG_SHA256=6030b6881b8168546756ab3a5e43628d8d564539b0476578e287775573a77438 |
| 18 | |
| 19 | termux_step_post_extract_package() { |
| 20 | # requires installing autopoint default docker image doesn't have that installed as yet. |
| 21 | # adding huge patchsets to termux-packages repo is not optimal so we do it this way for now. |
| 22 | local file="$TERMUX_PKG_CACHEDIR/maildir.patch.gz" |
| 23 | termux_download \ |
| 24 | http://alpine.freeiz.com/alpine/patches/alpine-${TERMUX_PKG_VERSION}/maildir.patch.gz \ |
| 25 | "$file" \ |
| 26 | 1229ea9ec4e150dda1d2da866730a777148874e4667c54cd2c488101b5db8099 |
| 27 | gunzip -c $file | patch -s -p1 |
| 28 | } |
| 29 | |
| 30 | termux_step_pre_configure () { |
| 31 | export TCC=$CC |
| 32 | export TRANLIB=$RANLIB |
| 33 | export SPELLPROG=${TERMUX_PREFIX}/bin/hunspell |
| 34 | export alpine_SSLVERSION=old |
| 35 | export TPATH=$PATH |
| 36 | |
| 37 | LDFLAGS+=" -lcrypt -llog" |
| 38 | |
| 39 | cp $TERMUX_PKG_BUILDER_DIR/getpass.c $TERMUX_PKG_SRCDIR/include/ |
| 40 | cp $TERMUX_PKG_BUILDER_DIR/getpass.h $TERMUX_PKG_SRCDIR/include/ |
| 41 | cp $TERMUX_PKG_BUILDER_DIR/pine.conf $TERMUX_PREFIX/etc/pine.conf |
| 42 | |
| 43 | touch $TERMUX_PKG_SRCDIR/imap/lnxok |
| 44 | } |
| 45 | |
| 46 | termux_step_post_configure() { |
| 47 | cd pith |
| 48 | $CC_FOR_BUILD help_c_gen.c -o help_c_gen |
| 49 | $CC_FOR_BUILD help_h_gen.c -o help_h_gen |
| 50 | touch -d "next hour" help_c_gen help_h_gen |
| 51 | } |
| 52 | |