termux-packages/x11-packages/qt5-qttools/postinst
Leonid Pliushch 1455972447
enable some qt5-dependent packages
%ci:no-build
2022-04-18 14:48:04 +05:30

16 lines
576 B
Bash
Executable File

#!/data/data/com.termux/files/usr/bin/sh
PREFIX="/data/data/com.termux/files/usr"
if [ `uname -o` = 'Android' ]; then
echo "Patching Qt installation configuration files ..."
## Make sure the cmake configurations point to the on-device programs instead of the host tools
sed -i \
's|install_prefix}/opt/qt/cross/|install_prefix}/|g' \
"${PREFIX}/lib/cmake/Qt5Help/Qt5HelpConfigExtras.cmake"
sed -i \
's|install_prefix}/opt/qt/cross/|install_prefix}/|g' \
"${PREFIX}/lib/cmake/Qt5LinguistTools/Qt5LinguistToolsConfig.cmake"
fi