qt5-base: create symlink '$PREFIX/lib/fonts' --> '/system/fonts' if possible

Quick fix for applications that require fonts.
This commit is contained in:
Leonid Pliushch 2018-09-21 01:09:35 +03:00 committed by Yaksh Bariya
parent 51af73a0cc
commit cedcfb3fe7
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
2 changed files with 13 additions and 0 deletions

View File

@ -219,3 +219,9 @@ termux_step_make_install() {
find "${TERMUX_PREFIX}/lib" -type f -name '*.prl' \
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' "{}" \;
}
termux_step_create_debscripts() {
## FIXME: Qt should be built with fontconfig somehow instead
## of using direct path to fonts.
cp -f "${TERMUX_PKG_BUILDER_DIR}/postinst" ./
}

7
x11-packages/qt5-base/postinst Executable file
View File

@ -0,0 +1,7 @@
#!/data/data/com.termux/files/usr/bin/sh
if [ ! -e "/data/data/com.termux/files/usr/lib/fonts" ]; then
if [ -d "/system/fonts" ]; then
ln -sf /system/fonts /data/data/com.termux/files/usr/lib/fonts
fi
fi