From 5c5086a3b839302e708b4a95a08bd5b484ab64b0 Mon Sep 17 00:00:00 2001
From: Michael Hanson <mihanson@linhes.org>
Date: Thu, 26 Jan 2012 03:56:05 +0000
Subject: ttf-freefont: initial commit. dep of vlc-nogui

---
 abs/extra/ttf-freefont/PKGBUILD             | 22 ++++++++++++++++++++++
 abs/extra/ttf-freefont/ttf-freefont.install | 17 +++++++++++++++++
 2 files changed, 39 insertions(+)
 create mode 100644 abs/extra/ttf-freefont/PKGBUILD
 create mode 100644 abs/extra/ttf-freefont/ttf-freefont.install

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
+}
+
+
-- 
cgit v0.12