From bac16d5021bea59a91d1a8cf6edd0073d0f79738 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 26 Jan 2014 12:57:17 +0100 Subject: [PATCH] Update ttf-fantasque-sans-git, add .install --- ttf-fantasque-sans-git/PKGBUILD | 2 +- .../ttf-fantasque-sans-git.install | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 ttf-fantasque-sans-git/ttf-fantasque-sans-git.install diff --git a/ttf-fantasque-sans-git/PKGBUILD b/ttf-fantasque-sans-git/PKGBUILD index 74e5b15..b6d57a1 100644 --- a/ttf-fantasque-sans-git/PKGBUILD +++ b/ttf-fantasque-sans-git/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: Parantapa Bhattacharya pkgname=ttf-fantasque-sans-git -pkgver=20140110 +pkgver=20140123 pkgrel=1 pkgdesc="A font family with a great monospaced variant for programmers." arch=('any') diff --git a/ttf-fantasque-sans-git/ttf-fantasque-sans-git.install b/ttf-fantasque-sans-git/ttf-fantasque-sans-git.install new file mode 100644 index 0000000..1aae7e7 --- /dev/null +++ b/ttf-fantasque-sans-git/ttf-fantasque-sans-git.install @@ -0,0 +1,15 @@ +post_install() { + echo -n "Updating font cache... " + fc-cache -fs >/dev/null + mkfontscale /usr/share/fonts/TTF /usr/share/fonts/Type1 + mkfontdir /usr/share/fonts/TTF /usr/share/fonts/Type1 + echo "done" +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +}