termux-packages/x11-packages/qt5-qtbase/postinst
Simeon Huang 49706cbec9
add a new package for qt-5.12.10 base submodule
Fix the weird crashing issues when using xcb platform
The cause was xinput (though root issue unknown yet).
configuring with `-no-xcb-xinput` fixes the issue
2022-04-18 14:46:23 +05:30

13 lines
343 B
Bash
Executable File

#!/data/data/com.termux/files/usr/bin/sh
PREFIX="/data/data/com.termux/files/usr"
if [ ! -e "${PREFIX}/lib/fonts" ]; then
ln -sf "${PREFIX}/share/fonts/TTF" "${PREFIX}/lib/fonts"
else
if [ -h "${PREFIX}/lib/fonts" ]; then
rm -f "${PREFIX}/lib/fonts"
ln -sf "${PREFIX}/share/fonts/TTF" "${PREFIX}/lib/fonts"
fi
fi