MINGW-packages/mingw-w64-fontconfig/fontconfig-MINGW32.install
Christoph Reiter 382c674ce1 fontconfig: remove install message
Most users are not direct users of fontconfig and shouldn't
have to care about this. Let's avoid the confusion.
2022-02-04 12:31:55 +01:00

31 lines
629 B
Plaintext

MINGW_INSTALL=mingw32
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
}