From 9c1983f067e78edb290f876f4c8326a07f1b50f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Thu, 10 Feb 2011 10:40:59 -0300 Subject: ttf-thai-libre-0.4.14-1 --- libre/ttf-thai-libre/PKGBUILD | 27 +++++++++++++++++++++++++++ libre/ttf-thai-libre/ttf.install | 15 +++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 libre/ttf-thai-libre/PKGBUILD create mode 100644 libre/ttf-thai-libre/ttf.install (limited to 'libre') diff --git a/libre/ttf-thai-libre/PKGBUILD b/libre/ttf-thai-libre/PKGBUILD new file mode 100644 index 000000000..3d1d4ec3d --- /dev/null +++ b/libre/ttf-thai-libre/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Henry Jensen + +pkgname=ttf-thai-libre +pkgver=0.4.14 +pkgrel=1 +pkgdesc="A collection of basic Thai fonts, libre version" +arch=(any) +license=('GPL') +depends=(xorg-fonts-encodings xorg-fonts-alias xorg-font-utils fontconfig) +makedepends=(fontforge) +provides=('thai-ttf' "ttf-thai=$pkgver") +conflicts=('ttf-thai') +replaces=('ttf-thai') +url="http://www.connochaetos.org" +install=ttf.install +source=(http://www.connochaetos.org/misc/thaifonts-scalable-libre-${pkgver}.tar.gz) +md5sums=('205436d69d273aca33dbbf31c61fa6b9') + +build() { + cd ${srcdir}/thaifonts-scalable-libre-${pkgver} + ./configure --prefix=/usr --with-ttfdir=/usr/share/fonts/TTF --sysconfdir=/etc + make + make DESTDIR=${pkgdir}/ install + rm ${pkgdir}/usr/share/fonts/TTF/fonts.dir + rm ${pkgdir}/usr/share/fonts/TTF/fonts.scale +} + diff --git a/libre/ttf-thai-libre/ttf.install b/libre/ttf-thai-libre/ttf.install new file mode 100644 index 000000000..203190187 --- /dev/null +++ b/libre/ttf-thai-libre/ttf.install @@ -0,0 +1,15 @@ +post_install() { + echo -n "Updating font cache... " + fc-cache -fs > /dev/null + mkfontscale usr/share/fonts/TTF + mkfontdir usr/share/fonts/TTF + echo "done." +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} -- cgit v1.2.3-2-g168b