summaryrefslogtreecommitdiff
path: root/extra/libproxy/PKGBUILD
blob: 959b8906e376651b615e23342389486c83a003f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 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)
makedepends_x86_64=(webkit2gtk)
optdepends_i686=('webkit2gtk: PAC proxy support (Webkit2gtk engine)')
optdepends_pentium4=('webkit2gtk: PAC proxy support (Webkit2gtk engine)')
optdepends_x86_64=('webkit2gtk: PAC proxy support (Webkit2gtk engine)')

if [ "${CARCH}" = 'i486' ]; then
  pkgname=(
  $(
    printf '%s\n' "${pkgname[@]}" | \
      grep -v '^libproxy-webkit'
  )
  )
  unset package_libproxy-webkit
  eval "$(
    declare -f build | \
      sed '
        /cmake / s,\( -DWITH_WEBKIT3=\)ON,\1OFF,
      '
    declare -f package | \
      sed '
        /zenmap/d
      '
    declare -f package_libproxy | \
      sed '
        /_pick.*webkit.*/d
      '
  )"
fi