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