From f449347e5dc068ad8f91faea22ca61272acdf2f0 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 29 Jan 2013 10:42:43 +0100 Subject: [PATCH] liberation-fonts-ttf: register properly with fontconfig. --- .../files/30-0-liberation-mono.conf | 17 +++++++++++++++ .../files/30-0-liberation-sans.conf | 17 +++++++++++++++ .../files/30-0-liberation-serif.conf | 17 +++++++++++++++ srcpkgs/liberation-fonts-ttf/template | 21 ++++++++++--------- 4 files changed, 62 insertions(+), 10 deletions(-) create mode 100644 srcpkgs/liberation-fonts-ttf/files/30-0-liberation-mono.conf create mode 100644 srcpkgs/liberation-fonts-ttf/files/30-0-liberation-sans.conf create mode 100644 srcpkgs/liberation-fonts-ttf/files/30-0-liberation-serif.conf diff --git a/srcpkgs/liberation-fonts-ttf/files/30-0-liberation-mono.conf b/srcpkgs/liberation-fonts-ttf/files/30-0-liberation-mono.conf new file mode 100644 index 00000000000..ca9778d0669 --- /dev/null +++ b/srcpkgs/liberation-fonts-ttf/files/30-0-liberation-mono.conf @@ -0,0 +1,17 @@ + + + + + + Courier New + + Liberation Mono + + + + Liberation Mono + + Courier New + + + diff --git a/srcpkgs/liberation-fonts-ttf/files/30-0-liberation-sans.conf b/srcpkgs/liberation-fonts-ttf/files/30-0-liberation-sans.conf new file mode 100644 index 00000000000..f12f35c6cc2 --- /dev/null +++ b/srcpkgs/liberation-fonts-ttf/files/30-0-liberation-sans.conf @@ -0,0 +1,17 @@ + + + + + + Arial + + Liberation Sans + + + + Liberation Sans + + Arial + + + diff --git a/srcpkgs/liberation-fonts-ttf/files/30-0-liberation-serif.conf b/srcpkgs/liberation-fonts-ttf/files/30-0-liberation-serif.conf new file mode 100644 index 00000000000..3f4aed8324a --- /dev/null +++ b/srcpkgs/liberation-fonts-ttf/files/30-0-liberation-serif.conf @@ -0,0 +1,17 @@ + + + + + + Times New Roman + + Liberation Serif + + + + Liberation Serif + + Times New Roman + + + diff --git a/srcpkgs/liberation-fonts-ttf/template b/srcpkgs/liberation-fonts-ttf/template index 3dbc39ec701..b1dcc8874d3 100644 --- a/srcpkgs/liberation-fonts-ttf/template +++ b/srcpkgs/liberation-fonts-ttf/template @@ -1,28 +1,29 @@ # Template build file for 'liberation-fonts-ttf'. pkgname=liberation-fonts-ttf version=2.00.0 -revision=1 -fulldepends="font-util" +revision=2 short_desc="TrueType fonts from RedHat" maintainer="Juan RP " license="GPL-2, ${pkgname}" homepage="http://www.redhat.com/promo/fonts/" distfiles="https://fedorahosted.org/releases/l/i/liberation-fonts/${pkgname}-${version}.tar.gz" checksum=3b7214e7352b8e4990c71018031ecb0f40d6793f140d7a956d7345997c8c5100 -long_desc=" - On May 9, 2007, Red Hat announced the public release of these fonts - under the trademark LIBERATION at the Red Hat Summit. There are three - sets: Sans (a substitute for Arial, Albany, Helvetica, Nimbus Sans L, - and Bitstream Vera Sans), Serif (a substitute for Times New Roman, - Thorndale, Nimbus Roman, and Bitstream Vera Serif) and Mono (a - substitute for Courier New, Cumberland, Courier, Nimbus Mono L, - and Bitstream Vera Sans Mono)." noarch=yes font_dirs="/usr/share/fonts/TTF" +fulldepends="font-util xbps-triggers>=0.58" do_install() { vmkdir usr/share/fonts/TTF install -m644 *.ttf ${DESTDIR}/usr/share/fonts/TTF + + # install fontconfig files + vinstall ${FILESDIR}/30-0-liberation-mono.conf 644 \ + etc/fonts/conf.avail 30-${pkgname}-mono.conf + vinstall ${FILESDIR}/30-0-liberation-sans.conf 644 \ + etc/fonts/conf.avail 30-${pkgname}-sans.conf + vinstall ${FILESDIR}/30-0-liberation-serif.conf 644 \ + etc/fonts/conf.avail 30-${pkgname}-serif.conf + vinstall LICENSE 644 usr/share/licenses/${pkgname} }