diff options
Diffstat (limited to 'abs/extra')
-rw-r--r-- | abs/extra/ttf-freefont/PKGBUILD | 22 | ||||
-rw-r--r-- | abs/extra/ttf-freefont/ttf-freefont.install | 17 |
2 files changed, 39 insertions, 0 deletions
diff --git a/abs/extra/ttf-freefont/PKGBUILD b/abs/extra/ttf-freefont/PKGBUILD new file mode 100644 index 0000000..cc4a110 --- /dev/null +++ b/abs/extra/ttf-freefont/PKGBUILD @@ -0,0 +1,22 @@ +# $Id$ +# Maintainer: Giovanni Scafora <giovanni@archlinux.org> +# Contributor: Andrea Scarpino <andrea@archlinux.org> + +pkgname=ttf-freefont +pkgver=20100919 +pkgrel=1 +pkgdesc="A set of free high-quality TrueType fonts covering the UCS character set" +arch=('any') +url="http://www.nongnu.org/freefont/" +license=('GPL') +depends=('fontconfig' 'xorg-font-utils') +install=ttf-freefont.install +source=("http://ftp.gnu.org/gnu/freefont/freefont-ttf-$pkgver.tar.gz") +sha1sums=('feb1c3349529bbb769cfe55bc901baa917507407') + +build() { + cd "${srcdir}/freefont-${pkgver}" + install -d "$pkgdir/usr/share/fonts/TTF" + install -m644 *.ttf "$pkgdir/usr/share/fonts/TTF/" +} + diff --git a/abs/extra/ttf-freefont/ttf-freefont.install b/abs/extra/ttf-freefont/ttf-freefont.install new file mode 100644 index 0000000..0705eb5 --- /dev/null +++ b/abs/extra/ttf-freefont/ttf-freefont.install @@ -0,0 +1,17 @@ +post_install() { + echo -n "Updating font cache... " + fc-cache -f > /dev/null + mkfontscale /usr/share/fonts/TTF + mkfontdir /usr/share/fonts/TTF + echo "done." +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} + + |