aboutsummaryrefslogtreecommitdiff
path: root/x11-fonts/fontconfig/files/pkg-install.in
diff options
context:
space:
mode:
Diffstat (limited to 'x11-fonts/fontconfig/files/pkg-install.in')
-rw-r--r--x11-fonts/fontconfig/files/pkg-install.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/x11-fonts/fontconfig/files/pkg-install.in b/x11-fonts/fontconfig/files/pkg-install.in
index b00502db5f9d..2ce9fb1c5c85 100644
--- a/x11-fonts/fontconfig/files/pkg-install.in
+++ b/x11-fonts/fontconfig/files/pkg-install.in
@@ -6,4 +6,6 @@ export PATH
if [ "$2" = "POST-INSTALL" ]; then
echo "Running fc-cache to build fontconfig cache..."
fc-cache -f -v
+elif [ "$2" = "DEINSTALL" ]; then
+ find %%PREFIX%%/lib/X11/fonts/ -name fonts.cache-1 -delete
fi