diff --git a/mingw-w64-fontconfig/fontconfig-i686.install b/mingw-w64-fontconfig/fontconfig-i686.install index f52c9c6bbc..618baf458e 100644 --- a/mingw-w64-fontconfig/fontconfig-i686.install +++ b/mingw-w64-fontconfig/fontconfig-i686.install @@ -6,15 +6,23 @@ post_install() { _EOF - echo -n "updating font cache... " - mingw32/bin/fc-cache -f - echo "done." + if [ -n "${MSYS2_FC_CACHE_SKIP}" ]; then + echo "Warning: 'MSYS2_FC_CACHE_SKIP' set, skipping font cache update" + else + echo -n "updating font cache... " + mingw32/bin/fc-cache -f + echo "done." + fi } post_upgrade() { - echo -n "updating font cache... " - mingw32/bin/fc-cache -f - echo "done." + if [ -n "${MSYS2_FC_CACHE_SKIP}" ]; then + echo "Warning: 'MSYS2_FC_CACHE_SKIP' set, skipping font cache update" + else + echo -n "updating font cache... " + mingw32/bin/fc-cache -f + echo "done." + fi } post_remove() { @@ -24,4 +32,4 @@ post_remove() { in mingw32/etc/fonts/conf.d/ _EOF -} \ No newline at end of file +} diff --git a/mingw-w64-fontconfig/fontconfig-x86_64.install b/mingw-w64-fontconfig/fontconfig-x86_64.install index 08e5bd10ea..469be24b49 100644 --- a/mingw-w64-fontconfig/fontconfig-x86_64.install +++ b/mingw-w64-fontconfig/fontconfig-x86_64.install @@ -6,15 +6,23 @@ post_install() { _EOF - echo -n "updating font cache... " - mingw64/bin/fc-cache -f - echo "done." + if [ -n "${MSYS2_FC_CACHE_SKIP}" ]; then + echo "Warning: 'MSYS2_FC_CACHE_SKIP' set, skipping font cache update" + else + echo -n "updating font cache... " + mingw64/bin/fc-cache -f + echo "done." + fi } post_upgrade() { - echo -n "updating font cache... " - mingw64/bin/fc-cache -f - echo "done." + if [ -n "${MSYS2_FC_CACHE_SKIP}" ]; then + echo "Warning: 'MSYS2_FC_CACHE_SKIP' set, skipping font cache update" + else + echo -n "updating font cache... " + mingw64/bin/fc-cache -f + echo "done." + fi } post_remove() {