diff --git a/mingw-w64-opencv/PKGBUILD b/mingw-w64-opencv/PKGBUILD index 41521cb87..799b8bead 100644 --- a/mingw-w64-opencv/PKGBUILD +++ b/mingw-w64-opencv/PKGBUILD @@ -81,7 +81,6 @@ build() { export OpenEXR_HOME=${MINGW_PREFIX} export OpenBLAS_HOME=${MINGW_PREFIX} - export LIBS="-lsharpyuv" MSYS2_ARG_CONV_EXCL="-DCMAKE_INSTALL_PREFIX=;-DPYTHON2_PACKAGES_PATH=;-DPYTHON3_PACKAGES_PATH=" \ ${MINGW_PREFIX}/bin/cmake.exe -Wno-dev \ @@ -125,7 +124,9 @@ build() { -DBUILD_opencv_python3=OFF \ -DOPENCV_PYTHON_SKIP_DETECTION=ON \ -DOPENCV_GENERATE_PKGCONFIG=ON \ - -DCMAKE_EXE_LINKER_FLAGS="-lwebp -lsharpyuv" \ + -DBUILD_opencv_apps=OFF \ + -DBUILD_TESTS=OFF \ + -DBUILD_EXAMPLES=OFF \ ../${_realname}-${pkgver} ${MINGW_PREFIX}/bin/cmake --build .