Commit | Line | Data |
---|---|---|
7efa6912 FF |
1 | TERMUX_PKG_HOMEPAGE=http://patches.freeiz.com |
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 | |
14 | " | |
7efa6912 | 15 | TERMUX_PKG_BUILD_IN_SRC=yes |
cb0edd1e | 16 | TERMUX_PKG_SHA256=6030b6881b8168546756ab3a5e43628d8d564539b0476578e287775573a77438 |
ec3b12e8 | 17 | |
cb0edd1e | 18 | termux_step_post_extract_package() { |
ec3b12e8 FF |
19 | # requires installing autopoint default docker image doesn't have that installed as yet. |
20 | # adding huge patchsets to termux-packages repo is not optimal so we do it this way for now. | |
21 | local file="$TERMUX_PKG_CACHEDIR/maildir.patch.gz" | |
22 | termux_download \ | |
23 | http://alpine.freeiz.com/alpine/patches/alpine-${TERMUX_PKG_VERSION}/maildir.patch.gz \ | |
24 | "$file" \ | |
25 | 1229ea9ec4e150dda1d2da866730a777148874e4667c54cd2c488101b5db8099 | |
26 | gunzip -c $file | patch -s -p1 | |
cb0edd1e | 27 | } |
7b1f1bd3 | 28 | |
7efa6912 | 29 | termux_step_pre_configure () { |
cb0edd1e | 30 | export TCC=$CC |
31 | export TRANLIB=$RANLIB | |
32 | export SPELLPROG=${TERMUX_PREFIX}/bin/hunspell | |
33 | export alpine_SSLVERSION=old | |
ec3b12e8 FF |
34 | export TPATH=$PATH |
35 | ||
7b1f1bd3 | 36 | LDFLAGS+=" -lcrypt -llog" |
ec3b12e8 | 37 | |
d628b9b0 | 38 | cp $TERMUX_PKG_BUILDER_DIR/getpass.c $TERMUX_PKG_SRCDIR/include/ |
39 | cp $TERMUX_PKG_BUILDER_DIR/getpass.h $TERMUX_PKG_SRCDIR/include/ | |
cb0edd1e | 40 | cp $TERMUX_PKG_BUILDER_DIR/pine.conf $TERMUX_PREFIX/etc/pine.conf |
ec3b12e8 | 41 | |
7b1f1bd3 | 42 | touch $TERMUX_PKG_SRCDIR/imap/lnxok |
d628b9b0 | 43 | } |
7b1f1bd3 FF |
44 | |
45 | termux_step_post_configure() { | |
d628b9b0 | 46 | cd pith |
7b1f1bd3 | 47 | $CC_FOR_BUILD help_c_gen.c -o help_c_gen |
d628b9b0 | 48 | $CC_FOR_BUILD help_h_gen.c -o help_h_gen |
ec3b12e8 | 49 | touch -d "next hour" help_c_gen help_h_gen |
7efa6912 | 50 | } |
cb0edd1e | 51 |