summaryrefslogtreecommitdiff
path: root/pcr/ttf-beteckna/ttf.install
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@parabola.nu>2013-06-03 11:41:39 -0300
committerNicolás Reynolds <fauno@parabola.nu>2013-06-03 11:41:39 -0300
commite175a6a319b5392f499b6f679f89f8346d8dd799 (patch)
treeaa84ee61b39ef860b4169e81369c545a9a732658 /pcr/ttf-beteckna/ttf.install
parent6370ae5c715a94a0390b77d10adb6e8ee3b39ef9 (diff)
parent8bc9d00dfcde0f3b844917713b3d31749ce51b50 (diff)
downloadabslibre-e175a6a319b5392f499b6f679f89f8346d8dd799.tar.gz
abslibre-e175a6a319b5392f499b6f679f89f8346d8dd799.tar.bz2
abslibre-e175a6a319b5392f499b6f679f89f8346d8dd799.zip
Merge branch 'master' of vparabola:abslibre
Diffstat (limited to 'pcr/ttf-beteckna/ttf.install')
-rw-r--r--pcr/ttf-beteckna/ttf.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/pcr/ttf-beteckna/ttf.install b/pcr/ttf-beteckna/ttf.install
new file mode 100644
index 000000000..33b7d6549
--- /dev/null
+++ b/pcr/ttf-beteckna/ttf.install
@@ -0,0 +1,15 @@
+post_install() {
+ echo -n "==> Rebuilding font cache... "
+ fc-cache -f &> /dev/null
+ mkfontscale /usr/share/fonts/TTF
+ mkfontdir /usr/share/fonts/TTF
+ echo "done"
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}