summaryrefslogtreecommitdiff
path: root/pcr/ttf-opensans/ttf-opensans.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-12-26 19:22:38 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-12-26 19:31:18 -0300
commitf49a2d01f261598543bc03d7d9910c93c977aebc (patch)
treed2d6c8aafc6d51cbab7134938098148a5f805520 /pcr/ttf-opensans/ttf-opensans.install
parent8267378aa359068a8aa7932afbdbb72e451a0af8 (diff)
downloadabslibre-f49a2d01f261598543bc03d7d9910c93c977aebc.tar.gz
abslibre-f49a2d01f261598543bc03d7d9910c93c977aebc.tar.bz2
abslibre-f49a2d01f261598543bc03d7d9910c93c977aebc.zip
ttf-opensans: add new package to [pcr] -> https://labs.parabola.nu/issues/901
Diffstat (limited to 'pcr/ttf-opensans/ttf-opensans.install')
-rw-r--r--pcr/ttf-opensans/ttf-opensans.install17
1 files changed, 17 insertions, 0 deletions
diff --git a/pcr/ttf-opensans/ttf-opensans.install b/pcr/ttf-opensans/ttf-opensans.install
new file mode 100644
index 000000000..cbeabfec8
--- /dev/null
+++ b/pcr/ttf-opensans/ttf-opensans.install
@@ -0,0 +1,17 @@
+post_install() {
+ echo -n "Updating font cache... "
+ fc-cache -f > /dev/null
+ mkfontscale /usr/share/fonts/TTF
+ mkfontdir /usr/share/fonts/TTF
+ echo "done."
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
+
+# vim: ts=2 sw=2 et: