Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/libproxy/PKGBUILD
blob: 5463630c47dd4b66f908871c7a22166dd74da429 (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
42
43
44
45
46
47
# 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
  pkgname=(
    $(
      printf '%s\n' "${pkgname[@]}" | \
        grep -v '^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