summaryrefslogtreecommitdiff
path: root/pcr/gohufont/gohufont.install
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/gohufont/gohufont.install')
-rw-r--r--pcr/gohufont/gohufont.install22
1 files changed, 22 insertions, 0 deletions
diff --git a/pcr/gohufont/gohufont.install b/pcr/gohufont/gohufont.install
new file mode 100644
index 000000000..3fb67c03b
--- /dev/null
+++ b/pcr/gohufont/gohufont.install
@@ -0,0 +1,22 @@
+post_install() {
+ echo "Updating font cache... "
+ fc-cache -fs >/dev/null 2>&1
+ mkfontscale /usr/share/fonts/misc
+ mkfontdir /usr/share/fonts/misc
+ xset fp rehash >/dev/null 2>&1
+ echo "Make sure that the line"
+ echo "FontPath \"/usr/share/fonts/misc\""
+ echo "is present in xorg.conf under the \"Files\" section"
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ fc-cache -fs >/dev/null 2>&1
+ mkfontscale /usr/share/fonts/misc
+ mkfontdir /usr/share/fonts/misc
+ xset fp rehash >/dev/null 2>&1
+}
+