From 6aa0837db7e55f647aca10683b808319be01bc97 Mon Sep 17 00:00:00 2001 From: xantares Date: Fri, 24 Feb 2017 21:22:33 +0100 Subject: [PATCH] Fix path to executable in cmake config file --- qt5-tools/mingw-w64/PKGBUILD | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qt5-tools/mingw-w64/PKGBUILD b/qt5-tools/mingw-w64/PKGBUILD index afaa6a49..e6de900b 100755 --- a/qt5-tools/mingw-w64/PKGBUILD +++ b/qt5-tools/mingw-w64/PKGBUILD @@ -109,5 +109,8 @@ package() { for exe_file in "${pkgdir}/usr/${_arch}/bin/"*.exe; do [[ -f $exe_file ]] && mv "${exe_file}" "${exe_file%.exe}-qt5.exe" done + # Fix the path to executables in cmake config files + sed -i "s|lib/qt/bin/qcollectiongenerator|bin/qcollectiongenerator-qt5.exe|g" "${pkgdir}"/usr/${_arch}/lib/cmake/Qt5Help/Qt5HelpConfigExtras.cmake + sed -i "s|lib/qt/bin/qhelpgenerator|bin/qhelpgenerator-qt5.exe|g" "${pkgdir}"/usr/${_arch}/lib/cmake/Qt5Help/Qt5HelpConfigExtras.cmake done }