diff options
author | Tilman Blumenbach | 2017-07-15 14:20:37 +0200 |
---|---|---|
committer | Tilman Blumenbach | 2017-07-15 14:20:37 +0200 |
commit | f2f5dce631a36edf4d51ea6f017b545b1caeb6f4 (patch) | |
tree | b102681d0d778ef76b17b5331dc7012f86c29ca5 | |
parent | 88635957b688c005684c11f455fb7d2b0fe73d2c (diff) | |
download | aur-f2f5dce631a36edf4d51ea6f017b545b1caeb6f4.tar.gz |
Depend on ALPM hooks to update font caches.
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 2 | ||||
-rw-r--r-- | terminus-font-ttf.install | 18 |
3 files changed, 2 insertions, 20 deletions
@@ -7,7 +7,7 @@ pkgbase = terminus-font-ttf arch = any license = custom:OFL depends = fontconfig - depends = xorg-font-utils + depends = xorg-mkfontdir source = https://files.ax86.net/terminus-ttf/files/4.46.0/terminus-ttf-4.46.0.zip sha384sums = c134df563057c9c41499830ab2e000fbb34e69f2df72a3dfa79eec250e6392141176a81ca411e53034f7e7e2ec245844 @@ -7,7 +7,7 @@ pkgdesc="Monospaced bitmap font designed for long work with computers (TTF versi arch=('any') url="http://files.ax86.net/terminus-ttf" license=('custom:OFL') -depends=('fontconfig' 'xorg-font-utils') +depends=('fontconfig' 'xorg-mkfontdir') install='terminus-font-ttf.install' source=("https://files.ax86.net/terminus-ttf/files/${pkgver}/terminus-ttf-${pkgver}.zip") diff --git a/terminus-font-ttf.install b/terminus-font-ttf.install index eadf13feda42..242b46df640a 100644 --- a/terminus-font-ttf.install +++ b/terminus-font-ttf.install @@ -1,22 +1,4 @@ -post_upgrade() -{ - printf 'Updating font cache... ' - - fc-cache -s >/dev/null - mkfontscale usr/share/fonts/TTF - mkfontdir usr/share/fonts/TTF - - echo 'done.' -} - -post_remove() -{ - post_upgrade -} - post_install() { - post_upgrade - echo '>>> The font files have been installed into /usr/share/fonts/TTF/.' } |