diff options
author | mrxx | 2019-07-19 23:46:43 +0200 |
---|---|---|
committer | mrxx | 2019-07-19 23:46:43 +0200 |
commit | f239e3f1e7b9ba77db31f0b99848395efa4515f0 (patch) | |
tree | 1c9391c16aaeb2c9197c0dacfb45738c1ceca159 /ttf-vista-fonts.install | |
parent | bca74f769fda111125af889c8b5fa64253fe2a3d (diff) | |
download | aur-f239e3f1e7b9ba77db31f0b99848395efa4515f0.tar.gz |
Update upstream url, add license information
Diffstat (limited to 'ttf-vista-fonts.install')
-rw-r--r-- | ttf-vista-fonts.install | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/ttf-vista-fonts.install b/ttf-vista-fonts.install index 7d5202312c1b..a4f10ce1edaa 100644 --- a/ttf-vista-fonts.install +++ b/ttf-vista-fonts.install @@ -1,17 +1,21 @@ post_install() { - echo -n "rebuilding font cache... " - fc-cache /usr/share/fonts/TTF - mkfontscale /usr/share/fonts/TTF - mkfontdir /usr/share/fonts/TTF - echo "done." + rebuild_font_cache + echo + echo + echo "######################################################################" + echo "# #" + echo "# LICENSE AGREEEMENT for ttf-vista-fonts #" + echo "# #" + echo "# In accordance to the Microsoft EULA, you are allowed to use these #" + echo "# fonts only if a licensed copy of Windows Vista(tm) or later and/or #" + echo "# Microsoft Office 2007(tm) or later is installed on this computer. #" + echo "# #" + echo "######################################################################" + echo } post_upgrade() { - echo -n "rebuilding font cache... " - fc-cache /usr/share/fonts/TTF - mkfontscale /usr/share/fonts/TTF - mkfontdir /usr/share/fonts/TTF - echo "done." + rebuild_font_cache } pre_remove() { @@ -20,7 +24,11 @@ pre_remove() { # arg 1: the old package version post_remove() { - echo -n "rebuilding font cache... " + 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 |