summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD2
-rw-r--r--ttf-vista-fonts.install31
3 files changed, 4 insertions, 32 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5be548fa6c10..0fba65253e11 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = ttf-vista-fonts
pkgdesc = Microsoft Vista and Office 2007 True Type Fonts
pkgver = 1
- pkgrel = 10
+ pkgrel = 11
url = https://docs.microsoft.com/en-us/typography/fonts/font-faq
install = ttf-vista-fonts.install
arch = any
@@ -14,4 +14,3 @@ pkgbase = ttf-vista-fonts
sha256sums = 249473568eba7a1e4f95498acba594e0f42e6581add4dead70c1dfb908a09423
pkgname = ttf-vista-fonts
-
diff --git a/PKGBUILD b/PKGBUILD
index 992701422e00..34fe2d0e7e8a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
# Contributor: jnbek
pkgname=ttf-vista-fonts
pkgver=1
-pkgrel=10
+pkgrel=11
pkgdesc="Microsoft Vista and Office 2007 True Type Fonts"
url="https://docs.microsoft.com/en-us/typography/fonts/font-faq"
license=('custom:microsoft')
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 $*