summarylogtreecommitdiffstats
path: root/ttf-vista-fonts.install
diff options
context:
space:
mode:
authormrxx2021-10-12 11:23:34 +0200
committermrxx2021-10-12 11:23:34 +0200
commit7a1a0a59b62eceb350cbcaed0e6fe7a3b50d7089 (patch)
tree8afa549276776bef3726c87eaca1b7c06bc01966 /ttf-vista-fonts.install
parentb229c523274045ad5843a3eb08e6d977af074a76 (diff)
downloadaur-7a1a0a59b62eceb350cbcaed0e6fe7a3b50d7089.tar.gz
Remove rebuild_font_cache from install script
Diffstat (limited to 'ttf-vista-fonts.install')
-rw-r--r--ttf-vista-fonts.install31
1 files changed, 2 insertions, 29 deletions
diff --git a/ttf-vista-fonts.install b/ttf-vista-fonts.install
index a4f10ce1edaa..06a72546ccca 100644
--- a/ttf-vista-fonts.install
+++ b/ttf-vista-fonts.install
@@ -1,7 +1,6 @@
post_install() {
- rebuild_font_cache
- echo
- echo
+ echo
+ echo
echo "######################################################################"
echo "# #"
echo "# LICENSE AGREEEMENT for ttf-vista-fonts #"
@@ -13,29 +12,3 @@ post_install() {
echo "######################################################################"
echo
}
-
-post_upgrade() {
- rebuild_font_cache
-}
-
-pre_remove() {
- /bin/true
-}
-
-# arg 1: the old package version
-post_remove() {
- rebuild_font_cache
-}
-
-rebuild_font_cache() {
- echo -n "Rebuilding font cache... "
- fc-cache /usr/share/fonts/TTF
- mkfontscale /usr/share/fonts/TTF
- mkfontdir /usr/share/fonts/TTF
- echo "done."
-}
-
-op=$1
-shift
-
-$op $*