if [ "${CARCH}" = "i486" ]; then # Java broken on i486 temporarily makedepends=(${makedepends[@]//java-environment/}) eval "$( declare -f build | \ sed ' s/-DJPEGXL_INSTALL_JARDIR='.*'// ' )" eval "$( declare -f package_libjxl | \ sed ' /mv.*jar/d ' )" # break circle with gimp makedepends=(${makedepends[@]//gimp/}) fi # Disable SSE2 if [ "$CARCH" = 'i486' -o "$CARCH" = 'i686' ]; then eval "$( declare -f build | \ sed 's/-DCMAKE_BUILD_TYPE/-DSJPEG_ENABLE_SIMD=OFF -DCMAKE_BUILD_TYPE/' )" eval "$( declare -f prepare | \ sed '$ d' | sed '$ a sed -i s/HWY_SSSE3/HWY_SSSE3\\|HWY_SSE2\\|HWY_SSE4/ "${srcdir}/libjxl/CMakeLists.txt";}' )" fi # they fail in various ways unset check