alpine: update to 2.21 (#961)
[termux-packages] / disabled-packages / alpine / build.sh
CommitLineData
7efa6912
FF
1TERMUX_PKG_HOMEPAGE=http://patches.freeiz.com
2TERMUX_PKG_DESCRIPTION="Fast, easy to use email client"
cb0edd1e 3TERMUX_PKG_VERSION=2.21
7efa6912 4TERMUX_PKG_SRCURL=http://patches.freeiz.com/alpine/release/src/alpine-${TERMUX_PKG_VERSION}.tar.xz
cb0edd1e 5TERMUX_PKG_DEPENDS="openssl"
6TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-c-client-target=lnx --without-krb5 --without-pthread --without-tcl --without-ldap --disable-debug --with-system-pinerc=${TERMUX_PREFIX}/etc/pine.conf"
7efa6912 7TERMUX_PKG_BUILD_IN_SRC=yes
cb0edd1e 8TERMUX_PKG_SHA256=6030b6881b8168546756ab3a5e43628d8d564539b0476578e287775573a77438
9TERMUX_PKG_PATCHURL=http://patches.freeiz.com/alpine/patches/alpine-${TERMUX_PKG_VERSION}/maildir.patch.gz
10TERMUX_PKG_PATCHSHA256=1229ea9ec4e150dda1d2da866730a777148874e4667c54cd2c488101b5db8099
11# requires installing autopoint default docker image doesn't have that installed as yet.
12# adding huge patchsets to termux-packages repo is not optimal so we do it this way for now.
13termux_step_post_extract_package() {
14 local filename
15 filename=$(basename "$TERMUX_PKG_PATCHURL")
16 local file="$TERMUX_PKG_CACHEDIR/$filename"
17 termux_download "$TERMUX_PKG_PATCHURL" "$file" "$TERMUX_PKG_PATCHSHA256"
18 gunzip -c $file | patch -s -p1
19}
7b1f1bd3 20
7efa6912 21termux_step_pre_configure () {
cb0edd1e 22 export TCC=$CC
23 export TRANLIB=$RANLIB
24 export SPELLPROG=${TERMUX_PREFIX}/bin/hunspell
25 export alpine_SSLVERSION=old
7b1f1bd3 26 LDFLAGS+=" -lcrypt -llog"
d628b9b0 27 cp $TERMUX_PKG_BUILDER_DIR/getpass.c $TERMUX_PKG_SRCDIR/include/
28 cp $TERMUX_PKG_BUILDER_DIR/getpass.h $TERMUX_PKG_SRCDIR/include/
cb0edd1e 29 cp $TERMUX_PKG_BUILDER_DIR/pine.conf $TERMUX_PREFIX/etc/pine.conf
7efa6912 30 cd $TERMUX_PKG_SRCDIR
d628b9b0 31 autoreconf -if
7b1f1bd3
FF
32 touch $TERMUX_PKG_SRCDIR/imap/lnxok
33 export TPATH=$PATH
d628b9b0 34}
7b1f1bd3
FF
35
36termux_step_post_configure() {
d628b9b0 37 cd pith
7b1f1bd3 38 $CC_FOR_BUILD help_c_gen.c -o help_c_gen
d628b9b0 39 $CC_FOR_BUILD help_h_gen.c -o help_h_gen
7efa6912 40}
cb0edd1e 41