# no documentation build on i486 (no TeX)
makedepends=(${makedepends[@]//texlive-core/})
makedepends=(${makedepends[@]//texlive-latexextra/})
makedepends_i686+=(texlive-core texlive-latexextra)
makedepends_pentium4+=(texlive-core texlive-latexextra)
if [ "${CARCH}" = "i486" ]; then
  eval "$(
    declare -f build | \
      sed '
        /make.*docs/d
        s|-Dbuild_doc:BOOL=ON|-Dbuild_doc:BOOL=OFF|
      '
  )"
  unset check
fi