Add privoxy package (#406)
[termux-packages] / packages / privoxy / build.sh
1 TERMUX_PKG_HOMEPAGE=https://www.privoxy.org
2 TERMUX_PKG_DESCRIPTION="Privoxy is a non-caching web proxy with advanced filtering capabilities"
3 TERMUX_PKG_VERSION=3.0.26
4 TERMUX_PKG_SRCURL=https://www.privoxy.org/sf-download-mirror/Sources/$TERMUX_PKG_VERSION%20%28stable%29/privoxy-$TERMUX_PKG_VERSION-stable-src.tar.gz
5 TERMUX_PKG_FOLDERNAME=privoxy-$TERMUX_PKG_VERSION-stable
6 TERMUX_PKG_SHA256=57e415b43ee5dfdca74685cc034053eaae962952fdabd086171551a86abf9cd8
7 TERMUX_PKG_CONFFILES='etc/privoxy/config etc/privoxy/match-all.action etc/privoxy/trust etc/privoxy/user.action etc/privoxy/user.filter etc/privoxy/default.action etc/privoxy/default.filter'
8 TERMUX_PKG_BUILD_REVISION=1
9 TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-dynamic-pcre --sysconfdir=$TERMUX_PREFIX/etc/privoxy"
10 TERMUX_PKG_BUILD_IN_SRC=yes
11
12 termux_step_pre_configure() {
13 autoheader
14 autoconf
15
16 # avoid 'aarch64-linux-android-strip': No such file or directory
17 ln -s "$TERMUX_STANDALONE_TOOLCHAIN/bin/$STRIP" .
18 }
19
20 termux_step_post_make_install() {
21 # delete link created to avoid errors
22 rm -f "$TERMUX_PREFIX/sbin/$STRIP"
23 }
24
25 termux_step_post_massage() {
26 # copy default config files
27 for f in $TERMUX_PKG_CONFFILES; do
28 cp "$TERMUX_PKG_SRCDIR/$(basename $f)" "$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/$f"
29 done
30 }