summaryrefslogtreecommitdiff
path: root/pcr/ttf-beteckna/ttf.install
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2013-05-27 16:05:25 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2013-05-27 16:05:25 +0200
commitdb689afc9d3c16e6151cca0abaad4aefd8b7efe0 (patch)
treeb510956ebf5f4e8e7f8ae0315aec20c3f39dbb41 /pcr/ttf-beteckna/ttf.install
parent3c3eb2e8973e91bd0230d358c7f63ee60142e2ee (diff)
downloadabslibre-db689afc9d3c16e6151cca0abaad4aefd8b7efe0.tar.gz
abslibre-db689afc9d3c16e6151cca0abaad4aefd8b7efe0.tar.bz2
abslibre-db689afc9d3c16e6151cca0abaad4aefd8b7efe0.zip
Move ttf-beteckna to pcr.
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
+}