aboutsummaryrefslogtreecommitdiff
path: root/Keywords/fc.ucl
diff options
context:
space:
mode:
Diffstat (limited to 'Keywords/fc.ucl')
-rw-r--r--Keywords/fc.ucl19
1 files changed, 19 insertions, 0 deletions
diff --git a/Keywords/fc.ucl b/Keywords/fc.ucl
new file mode 100644
index 000000000000..73f659fb36d5
--- /dev/null
+++ b/Keywords/fc.ucl
@@ -0,0 +1,19 @@
+# $FreeBSD$
+#
+# MAINTAINER: x11@FreeBSD.org
+
+actions: [dir]
+post-install: <<EOD
+ case "%@" in
+ /*) fontsdir="%@" ;;
+ *) fontsdir="%D/%@" ;;
+ esac
+ fc-cache -fs ${fontsdir} 2>/dev/null || true
+EOD
+post-deinstall: <<EOD
+ case "%@" in
+ /*) fontsdir="%@" ;;
+ *) fontsdir="%D/%@" ;;
+ esac
+ fc-cache -fs ${fontsdir} 2>/dev/null || true
+EOD