eval "$( declare -f package_doxygen | \ sed ' 2 a arch=(i486 i686 pentium3 x86_64) ' declare -f package_doxygen-doc | \ sed ' 2 a arch=(any) ' )" if [ "${CARCH}" = "i486" ]; then # no qt5 makedepends=(${makedepends[@]//qt5-base/}) # no TeX makedepends=(${makedepends[@]//texlive-core/}) makedepends=(${makedepends[@]//texlive-latexextra/}) # no Graphviz makedepends=(${makedepends[@]//graphviz/}) # no ghostscript makedepends=(${makedepends[@]//ghostscript/}) eval "$( declare -f build | \ sed ' /make docs/d s|-Dbuild_doc:BOOL=ON|-Dbuild_doc:BOOL=OFF| s|-Dbuild_wizard:BOOL=ON|-Dbuild_wizard:BOOL=OFF| ' )" fi