# 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

# temporary do not test as testing new libproxy Perl module for version 5.36
# uses a perl version 5.34 of libProxy
unset check