Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-06-16 07:52:42 +0200
committerErich Eckner <git@eckner.net>2019-06-16 07:52:42 +0200
commit0372e781508bbf5bfc0e502a100a5b59f7121878 (patch)
tree67c67968fdfdc24a4e4adc7c6e650a8f1af40a45 /extra
parent7e0677481fe8ff2127aaef62fc3f3a07f3fa6db0 (diff)
extra/libproxy: skip webkit3 on i486
Diffstat (limited to 'extra')
-rw-r--r--extra/libproxy/PKGBUILD24
1 files changed, 24 insertions, 0 deletions
diff --git a/extra/libproxy/PKGBUILD b/extra/libproxy/PKGBUILD
new file mode 100644
index 00000000..53b87429
--- /dev/null
+++ b/extra/libproxy/PKGBUILD
@@ -0,0 +1,24 @@
+# skip webkit2gtk on i486 - we don't have that there
+makedepends=(${makedepends[@]/webkit2gtk/})
+_oifs="${IFS}"
+IFS=$(printf '\n')
+optdepends=(${optdepends[@]/webkit2gtk:*/})
+IFS="${_oifs}"
+
+makedepends_i686=(webkit2gtk)
+makedepends_pentium4=(webkit2gtk)
+optdepends_i686=('webkit2gtk: PAC proxy support (Webkit2gtk engine)')
+optdepends_pentium4=('webkit2gtk: PAC proxy support (Webkit2gtk engine)')
+
+if [ "${CARCH}" = 'i486' ]; then
+ eval "$(
+ declare -f build | \
+ sed '
+ /cmake / s,\( -DWITH_WEBKIT3=\)ON,\1OFF,
+ '
+ declare -f package | \
+ sed '
+ /zenmap/d
+ '
+ )"
+fi