WIP: mingw-w64-qt5-tools: Add regular CMake config file for QtUiTools
This commit is contained in:
parent
94d12eea95
commit
6e6cc3ed93
|
@ -17,7 +17,7 @@
|
||||||
_qt_module=qttools
|
_qt_module=qttools
|
||||||
pkgname="mingw-w64-qt5-tools"
|
pkgname="mingw-w64-qt5-tools"
|
||||||
pkgver=5.8.0
|
pkgver=5.8.0
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
pkgdesc="A cross-platform application and UI framework (Development Tools, QtHelp; mingw-w64)"
|
pkgdesc="A cross-platform application and UI framework (Development Tools, QtHelp; mingw-w64)"
|
||||||
depends=('mingw-w64-qt5-declarative')
|
depends=('mingw-w64-qt5-declarative')
|
||||||
|
@ -96,6 +96,19 @@ package() {
|
||||||
ln -sf "../${_arch}/lib/qt/bin/${tool}" "${pkgdir}/usr/bin/${_arch}-$tool-qt5"
|
ln -sf "../${_arch}/lib/qt/bin/${tool}" "${pkgdir}/usr/bin/${_arch}-$tool-qt5"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Install regular CMake file for static-only QtUiTools target (required due to
|
||||||
|
# patch 0022-Allow-usage-of-static-version-with-CMake.patch in mingw-w64-qt5-base)
|
||||||
|
# TODO: Fix patch or find another way to use static Qt with CMake
|
||||||
|
local uitools_cmake_dir="${pkgdir}/usr/${_arch}/lib/cmake/Qt5UiTools"
|
||||||
|
if [ ${_config##*=} != 'static' ] && [[ ! -d $uitools_cmake_dir ]]; then
|
||||||
|
mkdir -p "$uitools_cmake_dir"
|
||||||
|
for config_file in StaticQt5UiToolsConfig{,Version}; do
|
||||||
|
sed -e s/StaticQt5/Qt5/g "${pkgdir}/usr/${_arch}/lib/cmake/StaticQt5UiTools/$config_file.cmake" > "$uitools_cmake_dir/$config_file.cmake"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
# TODO: Do the same for regular pkg-config file (not so easy because whole static dependency chain is hard-coded here)
|
||||||
|
#sed -e s/StaticQt5/Qt5/g "${pkgdir}/usr/${_arch}/lib/pkgconfig/StaticQt5UiTools.pc" > "${pkgdir}/usr/${_arch}/lib/pkgconfig/Qt5UiTools.pc"
|
||||||
|
|
||||||
# Remove phrasebooks
|
# Remove phrasebooks
|
||||||
# Would save around 300 KiB on your floppy disk, I keep them by default because
|
# Would save around 300 KiB on your floppy disk, I keep them by default because
|
||||||
# phrasebooks might be useful when using Linguist
|
# phrasebooks might be useful when using Linguist
|
||||||
|
|
Loading…
Reference in New Issue