Commit | Line | Data |
---|---|---|
64701b2a | 1 | TERMUX_PKG_HOMEPAGE=http://alpine.freeiz.com |
7efa6912 | 2 | TERMUX_PKG_DESCRIPTION="Fast, easy to use email client" |
cb0edd1e | 3 | TERMUX_PKG_VERSION=2.21 |
ec3b12e8 FF |
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 | |
8654223e | 14 | --with-passfile=$TERMUX_ANDROID_HOME/.pine-passfile |
ec3b12e8 | 15 | " |
7efa6912 | 16 | TERMUX_PKG_BUILD_IN_SRC=yes |
cb0edd1e | 17 | TERMUX_PKG_SHA256=6030b6881b8168546756ab3a5e43628d8d564539b0476578e287775573a77438 |
ec3b12e8 | 18 | |
cb0edd1e | 19 | termux_step_post_extract_package() { |
ec3b12e8 FF |
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 | |
cb0edd1e | 28 | } |
7b1f1bd3 | 29 | |
7efa6912 | 30 | termux_step_pre_configure () { |
cb0edd1e | 31 | export TCC=$CC |
32 | export TRANLIB=$RANLIB | |
33 | export SPELLPROG=${TERMUX_PREFIX}/bin/hunspell | |
34 | export alpine_SSLVERSION=old | |
ec3b12e8 FF |
35 | export TPATH=$PATH |
36 | ||
7b1f1bd3 | 37 | LDFLAGS+=" -lcrypt -llog" |
ec3b12e8 | 38 | |
d628b9b0 | 39 | cp $TERMUX_PKG_BUILDER_DIR/getpass.c $TERMUX_PKG_SRCDIR/include/ |
40 | cp $TERMUX_PKG_BUILDER_DIR/getpass.h $TERMUX_PKG_SRCDIR/include/ | |
cb0edd1e | 41 | cp $TERMUX_PKG_BUILDER_DIR/pine.conf $TERMUX_PREFIX/etc/pine.conf |
ec3b12e8 | 42 | |
7b1f1bd3 | 43 | touch $TERMUX_PKG_SRCDIR/imap/lnxok |
d628b9b0 | 44 | } |
7b1f1bd3 FF |
45 | |
46 | termux_step_post_configure() { | |
d628b9b0 | 47 | cd pith |
7b1f1bd3 | 48 | $CC_FOR_BUILD help_c_gen.c -o help_c_gen |
d628b9b0 | 49 | $CC_FOR_BUILD help_h_gen.c -o help_h_gen |
ec3b12e8 | 50 | touch -d "next hour" help_c_gen help_h_gen |
7efa6912 | 51 | } |
cb0edd1e | 52 |