2016-04-14 23:17:53 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=http://patches.freeiz.com
|
|
|
|
TERMUX_PKG_DESCRIPTION="Fast, easy to use email client"
|
2017-04-30 23:55:03 +02:00
|
|
|
TERMUX_PKG_VERSION=2.21
|
2017-06-15 14:58:52 +02:00
|
|
|
TERMUX_PKG_SRCURL=http://alpine.freeiz.com/alpine/release/src/alpine-${TERMUX_PKG_VERSION}.tar.xz
|
|
|
|
TERMUX_PKG_DEPENDS="libcrypt, ncurses, openssl"
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
--disable-debug
|
|
|
|
--with-c-client-target=lnx
|
|
|
|
--without-krb5
|
|
|
|
--without-ldap
|
|
|
|
--without-pthread
|
|
|
|
--without-tcl
|
|
|
|
--with-system-pinerc=${TERMUX_PREFIX}/etc/pine.conf
|
|
|
|
"
|
2016-04-14 23:17:53 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=yes
|
2017-04-30 23:55:03 +02:00
|
|
|
TERMUX_PKG_SHA256=6030b6881b8168546756ab3a5e43628d8d564539b0476578e287775573a77438
|
2017-06-15 14:58:52 +02:00
|
|
|
|
2017-04-30 23:55:03 +02:00
|
|
|
termux_step_post_extract_package() {
|
2017-06-15 14:58:52 +02:00
|
|
|
# requires installing autopoint default docker image doesn't have that installed as yet.
|
|
|
|
# adding huge patchsets to termux-packages repo is not optimal so we do it this way for now.
|
|
|
|
local file="$TERMUX_PKG_CACHEDIR/maildir.patch.gz"
|
|
|
|
termux_download \
|
|
|
|
http://alpine.freeiz.com/alpine/patches/alpine-${TERMUX_PKG_VERSION}/maildir.patch.gz \
|
|
|
|
"$file" \
|
|
|
|
1229ea9ec4e150dda1d2da866730a777148874e4667c54cd2c488101b5db8099
|
|
|
|
gunzip -c $file | patch -s -p1
|
2017-04-30 23:55:03 +02:00
|
|
|
}
|
2017-01-06 02:37:45 +01:00
|
|
|
|
2016-04-14 23:17:53 +02:00
|
|
|
termux_step_pre_configure () {
|
2017-04-30 23:55:03 +02:00
|
|
|
export TCC=$CC
|
|
|
|
export TRANLIB=$RANLIB
|
|
|
|
export SPELLPROG=${TERMUX_PREFIX}/bin/hunspell
|
|
|
|
export alpine_SSLVERSION=old
|
2017-06-15 14:58:52 +02:00
|
|
|
export TPATH=$PATH
|
|
|
|
|
2017-01-06 02:37:45 +01:00
|
|
|
LDFLAGS+=" -lcrypt -llog"
|
2017-06-15 14:58:52 +02:00
|
|
|
|
2016-12-21 03:02:46 +01:00
|
|
|
cp $TERMUX_PKG_BUILDER_DIR/getpass.c $TERMUX_PKG_SRCDIR/include/
|
|
|
|
cp $TERMUX_PKG_BUILDER_DIR/getpass.h $TERMUX_PKG_SRCDIR/include/
|
2017-04-30 23:55:03 +02:00
|
|
|
cp $TERMUX_PKG_BUILDER_DIR/pine.conf $TERMUX_PREFIX/etc/pine.conf
|
2017-06-15 14:58:52 +02:00
|
|
|
|
2017-01-06 02:37:45 +01:00
|
|
|
touch $TERMUX_PKG_SRCDIR/imap/lnxok
|
2016-12-21 03:02:46 +01:00
|
|
|
}
|
2017-01-06 02:37:45 +01:00
|
|
|
|
|
|
|
termux_step_post_configure() {
|
2016-12-21 03:02:46 +01:00
|
|
|
cd pith
|
2017-01-06 02:37:45 +01:00
|
|
|
$CC_FOR_BUILD help_c_gen.c -o help_c_gen
|
2016-12-21 03:02:46 +01:00
|
|
|
$CC_FOR_BUILD help_h_gen.c -o help_h_gen
|
2017-06-15 14:58:52 +02:00
|
|
|
touch -d "next hour" help_c_gen help_h_gen
|
2016-04-14 23:17:53 +02:00
|
|
|
}
|
2017-04-30 23:55:03 +02:00
|
|
|
|