summaryrefslogtreecommitdiff
path: root/extra/libproxy/PKGBUILD
blob: dd01d027e46d1a3ef8683ed6e58549ea95f85fa5 (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
38
39
40
41
# 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)')

eval "$(
  declare -f package_libproxy-webkit | \
    sed '
      /^\s*{\s*$/ a arch=('"$(
        printf '%s\n' "${arch[@]}" | \
          grep -vxF 'i486' | \
          tr '\n' ' '
      )"')
    '
)"

if [ "${CARCH}" = 'i486' ]; then
  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