diff options
author | Martchus | 2017-02-24 21:36:24 +0100 |
---|---|---|
committer | Martchus | 2017-02-24 21:36:24 +0100 |
commit | 653da9a9cfaffe3a6ad78d219acf41df250371f3 (patch) | |
tree | 25fe9e1d51455e8dd6ff70ad14e9f424af50b930 | |
parent | 06124f9013b8db442b934218ba341feeb728826b (diff) | |
download | aur-653da9a9cfaffe3a6ad78d219acf41df250371f3.tar.gz |
Fix linker flags, fix path in CMake cfg
-rw-r--r-- | .SRCINFO | 2 | ||||
-rwxr-xr-x | PKGBUILD | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,5 @@ # Generated by mksrcinfo v8 -# Mon Feb 13 15:57:34 UTC 2017 +# Fri Feb 24 20:36:24 UTC 2017 pkgbase = mingw-w64-qt5-tools pkgdesc = A cross-platform application and UI framework (Development Tools, QtHelp; mingw-w64) pkgver = 5.8.0 @@ -61,6 +61,7 @@ build() { # Search paths for host standard library (/usr/lib) and for Qt5Bootstrap (/usr/$_arch/lib) are not set correctly by qmake # hence we need insert those paths manually make qmake_all + find . -type f -iname 'Makefile' -exec sed -i "s|-L/usr/$_arch/lib -lQt5QmlDevTools -lQt5Bootstrap|-L/usr/lib /usr/$_arch/lib/libQt5QmlDevTools.so /usr/$_arch/lib/libQt5Bootstrap.so|g" {} \; find . -type f -iname 'Makefile' -exec sed -i "s|-L/usr/$_arch/lib -lQt5QmlDevTools|-L/usr/lib /usr/$_arch/lib/libQt5QmlDevTools.so|g" {} \; find . -type f -iname 'Makefile' -exec sed -i "s|-L/usr/$_arch/lib -lQt5Bootstrap|-L/usr/lib /usr/$_arch/lib/libQt5Bootstrap.so|g" {} \; @@ -108,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 } |