Most users are not direct users of fontconfig and shouldn't have to care about this. Let's avoid the confusion.
31 lines
632 B
Plaintext
31 lines
632 B
Plaintext
MINGW_INSTALL=clangarm64
|
|
|
|
post_install() {
|
|
if [ -n "${MSYS2_FC_CACHE_SKIP}" ]; then
|
|
echo "Warning: 'MSYS2_FC_CACHE_SKIP' set, skipping font cache update"
|
|
else
|
|
echo -n "updating font cache... "
|
|
${MINGW_INSTALL}/bin/fc-cache -f
|
|
echo "done."
|
|
fi
|
|
}
|
|
|
|
post_upgrade() {
|
|
if [ -n "${MSYS2_FC_CACHE_SKIP}" ]; then
|
|
echo "Warning: 'MSYS2_FC_CACHE_SKIP' set, skipping font cache update"
|
|
else
|
|
echo -n "updating font cache... "
|
|
${MINGW_INSTALL}/bin/fc-cache -f
|
|
echo "done."
|
|
fi
|
|
}
|
|
|
|
post_remove() {
|
|
cat << _EOF
|
|
|
|
Check for dead symlinks and leftover files
|
|
in ${MINGW_INSTALL}/etc/fonts/conf.d/
|
|
|
|
_EOF
|
|
}
|