qt5-base: fix post-installation script
We should symlink a directory of TTF fonts instead of base font directory.
This commit is contained in:
parent
3160ab3eba
commit
fc5c0a233a
|
@ -12,7 +12,7 @@ TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr"
|
|||
TERMUX_PKG_HOMEPAGE=http://qt-project.org/
|
||||
TERMUX_PKG_DESCRIPTION="A cross-platform application and UI framework"
|
||||
TERMUX_PKG_VERSION=5.11.2
|
||||
TERMUX_PKG_REVISION=3
|
||||
TERMUX_PKG_REVISION=4
|
||||
TERMUX_PKG_SRCURL="http://download.qt.io/official_releases/qt/${TERMUX_PKG_VERSION%.*}/${TERMUX_PKG_VERSION}/single/qt-everywhere-src-${TERMUX_PKG_VERSION}.tar.xz"
|
||||
TERMUX_PKG_SHA256=c6104b840b6caee596fa9a35bc5f57f67ed5a99d6a36497b6fe66f990a53ca81
|
||||
TERMUX_PKG_DEPENDS="harfbuzz, libandroid-support, libandroid-shmem, libc++, libice, libicu, libjpeg-turbo, libpng, libsm, libuuid, libx11, libxcb, libxi, libxkbcommon, openssl, pcre2, ttf-dejavu, xcb-util-image, xcb-util-keysyms, xcb-util-renderutil, xcb-util-wm"
|
||||
|
|
|
@ -3,12 +3,10 @@
|
|||
PREFIX="/data/data/com.termux/files/usr"
|
||||
|
||||
if [ ! -e "${PREFIX}/lib/fonts" ]; then
|
||||
ln -sf "${PREFIX}/share/fonts" "${PREFIX}/lib/fonts"
|
||||
ln -sf "${PREFIX}/share/fonts/TTF" "${PREFIX}/lib/fonts"
|
||||
else
|
||||
## In previous versions we used '/system/fonts' as
|
||||
## font source.
|
||||
if [ -h "${PREFIX}/lib/fonts" ]; then
|
||||
rm -f "${PREFIX}/lib/fonts"
|
||||
ln -sf "${PREFIX}/share/fonts" "${PREFIX}/lib/fonts"
|
||||
ln -sf "${PREFIX}/share/fonts/TTF" "${PREFIX}/lib/fonts"
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue