summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/ttf-bitstream-vera/vera.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2008-11-09 18:41:37 (GMT)
committerJames Meyer <james.meyer@operamail.com>2008-11-09 18:41:37 (GMT)
commit1c4b59e5d379ba44c9ba9e27750ebec49a597c0d (patch)
tree25fca8e6b7b683065d364d64865b60c6bb33bd2b /abs/core-testing/ttf-bitstream-vera/vera.install
parentfbc08d61eff10b56a2fbab64a8dab5bdc1eb5edf (diff)
downloadlinhes_pkgbuild-1c4b59e5d379ba44c9ba9e27750ebec49a597c0d.zip
linhes_pkgbuild-1c4b59e5d379ba44c9ba9e27750ebec49a597c0d.tar.gz
linhes_pkgbuild-1c4b59e5d379ba44c9ba9e27750ebec49a597c0d.tar.bz2
gdb,telnet,patch,make,vte
Diffstat (limited to 'abs/core-testing/ttf-bitstream-vera/vera.install')
-rw-r--r--abs/core-testing/ttf-bitstream-vera/vera.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/abs/core-testing/ttf-bitstream-vera/vera.install b/abs/core-testing/ttf-bitstream-vera/vera.install
new file mode 100644
index 0000000..4f5212e
--- /dev/null
+++ b/abs/core-testing/ttf-bitstream-vera/vera.install
@@ -0,0 +1,20 @@
+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 $1
+}
+
+post_remove() {
+ post_install $1
+}
+
+op=$1
+shift
+
+$op $*