2021-10-22 22:39:48 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=http://alpine.x10host.com/
|
2016-04-14 23:17:53 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="Fast, easy to use email client"
|
2019-01-20 22:39:59 +01:00
|
|
|
TERMUX_PKG_LICENSE="Apache-2.0"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2021-10-22 22:39:48 +02:00
|
|
|
TERMUX_PKG_VERSION=2.25
|
|
|
|
TERMUX_PKG_SRCURL=http://alpine.x10host.com/alpine/release/src/alpine-$TERMUX_PKG_VERSION.tar.xz
|
|
|
|
TERMUX_PKG_SHA256=658a150982f6740bb4128e6dd81188eaa1212ca0bf689b83c2093bb518ecf776
|
2018-02-09 00:57:35 +01:00
|
|
|
TERMUX_PKG_DEPENDS="libcrypt, ncurses, openssl-tool"
|
2017-06-15 14:58:52 +02:00
|
|
|
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
|
2017-12-05 22:48:12 +01:00
|
|
|
--with-passfile=$TERMUX_ANDROID_HOME/.pine-passfile
|
2017-06-15 14:58:52 +02:00
|
|
|
"
|
2019-08-12 17:28:41 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2017-06-15 14:58:52 +02:00
|
|
|
|
2019-02-08 10:37:29 +01: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
|
|
|
|
|
2019-12-30 01:05:41 +01:00
|
|
|
export LIBS="-lcrypt"
|
2017-06-15 14:58:52 +02:00
|
|
|
|
2017-12-07 02:52:28 +01:00
|
|
|
# To get S_IREAD and friends:
|
|
|
|
CPPFLAGS+=" -D__USE_BSD"
|
|
|
|
|
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
|
|
|
}
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_create_debscripts() {
|
2018-02-09 00:57:35 +01:00
|
|
|
|
2019-02-12 09:23:21 +01:00
|
|
|
echo "#!$TERMUX_PREFIX/bin/sh" >> postinst
|
2018-02-09 00:57:35 +01:00
|
|
|
echo "if [ ! -e $TERMUX_ANDROID_HOME/.alpine-smime/.pwd/MasterPassword.crt ] && [ ! -e $HOME/.alpine-smime/.pwd/MasterPassword.key ]; then" >> postinst
|
2019-02-12 09:23:21 +01:00
|
|
|
echo "echo 'warning making a passwordless masterpasword file'" >> postinst
|
2018-02-09 00:57:35 +01:00
|
|
|
echo "mkdir -p \$HOME/.alpine-smime/public \$HOME/.alpine-smime/.pwd \$HOME/.alpine-smime/private \$HOME/.alpine-smime/ca" >> postinst
|
|
|
|
echo "openssl req -x509 -newkey rsa:2048 -keyout \$HOME/.alpine-smime/.pwd/MasterPassword.key -out \$HOME/.alpine-smime/.pwd/MasterPassword.crt -days 10000 -nodes -subj '/C=US/ST=dont/L=use/O=this Name/OU=for/CN=anything.com.termux'" >> postinst
|
|
|
|
echo "touch \$HOME/.pine-passfile" >> postinst
|
|
|
|
echo "fi" >> postinst
|
|
|
|
}
|
2017-04-30 23:55:03 +02:00
|
|
|
|