summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
authorMichael Hanson <mihanson@linhes.org>2012-01-26 03:56:05 (GMT)
committerMichael Hanson <mihanson@linhes.org>2012-01-26 03:56:05 (GMT)
commit5c5086a3b839302e708b4a95a08bd5b484ab64b0 (patch)
tree9a3929bcf90aae3670addda9608ab92e9577c9ed /abs
parent0a67bbb2581429c090a360e63ae0eb49cac528ae (diff)
downloadlinhes_pkgbuild-5c5086a3b839302e708b4a95a08bd5b484ab64b0.zip
linhes_pkgbuild-5c5086a3b839302e708b4a95a08bd5b484ab64b0.tar.gz
linhes_pkgbuild-5c5086a3b839302e708b4a95a08bd5b484ab64b0.tar.bz2
ttf-freefont: initial commit. dep of vlc-nogui
Diffstat (limited to 'abs')
-rw-r--r--abs/extra/ttf-freefont/PKGBUILD22
-rw-r--r--abs/extra/ttf-freefont/ttf-freefont.install17
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
+}
+
+