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="
8 --with-c-client-target=lnx
13 --with-system-pinerc=${TERMUX_PREFIX}/etc/pine.conf
14 --with-passfile=$TERMUX_ANDROID_HOME/.pine-passfile
16 TERMUX_PKG_BUILD_IN_SRC=yes
17 TERMUX_PKG_SHA256=6030b6881b8168546756ab3a5e43628d8d564539b0476578e287775573a77438
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"
24 http://alpine.freeiz.com/alpine/patches/alpine-${TERMUX_PKG_VERSION}/maildir.patch.gz \
26 1229ea9ec4e150dda1d2da866730a777148874e4667c54cd2c488101b5db8099
27 gunzip -c $file | patch -s -p1
30 termux_step_pre_configure () {
32 export TRANLIB=$RANLIB
33 export SPELLPROG=${TERMUX_PREFIX}/bin/hunspell
34 export alpine_SSLVERSION=old
37 LDFLAGS+=" -lcrypt -llog"
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
43 touch $TERMUX_PKG_SRCDIR/imap/lnxok
46 termux_step_post_configure() {
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