summarylogtreecommitdiffstats
path: root/ttf-win7-fonts.install
diff options
context:
space:
mode:
authorMichael Lass2015-07-05 12:40:17 +0200
committerMichael Lass2015-07-08 14:16:43 +0200
commitb5e7c8de984d7f3b2ad0ca13ad4dfd48f8422f5b (patch)
tree1bb2f3ba4e4e022fcdb3433d587de0f43547d7ba /ttf-win7-fonts.install
downloadaur-b5e7c8de984d7f3b2ad0ca13ad4dfd48f8422f5b.tar.gz
Initial commit
Files taken from AUR3. .SRCFILE manipulated manually to remove the ttf source files.
Diffstat (limited to 'ttf-win7-fonts.install')
-rw-r--r--ttf-win7-fonts.install21
1 files changed, 21 insertions, 0 deletions
diff --git a/ttf-win7-fonts.install b/ttf-win7-fonts.install
new file mode 100644
index 000000000000..2c3f67296255
--- /dev/null
+++ b/ttf-win7-fonts.install
@@ -0,0 +1,21 @@
+## arg 1: the new package version
+post_install() {
+ echo -n "Updating font cache... "
+ fc-cache -f > /dev/null
+ mkfontscale /usr/share/fonts/TTF
+ mkfontdir /usr/share/fonts/TTF
+ echo "done."
+}
+
+## arg 1: the new package version
+## arg 2: the old package version
+post_upgrade() {
+ post_install $1
+}
+
+## arg 1: the old package version
+post_remove() {
+ post_install $1
+}
+
+# vim:set ts=2 sw=2 et: