summaryrefslogtreecommitdiff
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
parent7e0677481fe8ff2127aaef62fc3f3a07f3fa6db0 (diff)
downloadpackages-0372e781508bbf5bfc0e502a100a5b59f7121878.tar.xz
extra/libproxy: skip webkit3 on i486
-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