From 7ac27c3c83bf27816047005238d6272772238eec Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 28 Jan 2013 17:47:53 +0100 Subject: [PATCH] dejavu-fonts-ttf: set homepage/license; register with fontconfig properly. --- srcpkgs/dejavu-fonts-ttf/INSTALL | 15 +++++++++++++++ srcpkgs/dejavu-fonts-ttf/REMOVE | 15 +++++++++++++++ srcpkgs/dejavu-fonts-ttf/template | 24 +++++++++++------------- 3 files changed, 41 insertions(+), 13 deletions(-) create mode 100644 srcpkgs/dejavu-fonts-ttf/INSTALL create mode 100644 srcpkgs/dejavu-fonts-ttf/REMOVE diff --git a/srcpkgs/dejavu-fonts-ttf/INSTALL b/srcpkgs/dejavu-fonts-ttf/INSTALL new file mode 100644 index 00000000000..479f4153fcd --- /dev/null +++ b/srcpkgs/dejavu-fonts-ttf/INSTALL @@ -0,0 +1,15 @@ +_files=" + 20-unhint-small-dejavu-sans-mono.conf + 20-unhint-small-dejavu-sans.conf + 20-unhint-small-dejavu-serif.conf + 57-dejavu-sans-mono.conf + 57-dejavu-sans.conf + 57-dejavu-serif.conf" + +case ${ACTION} in +post) + for f in ${_files}; do + cd etc/fonts/conf.d && ln -sfr ../conf.avail/${f} . + done + ;; +esac diff --git a/srcpkgs/dejavu-fonts-ttf/REMOVE b/srcpkgs/dejavu-fonts-ttf/REMOVE new file mode 100644 index 00000000000..cbcb534f6c5 --- /dev/null +++ b/srcpkgs/dejavu-fonts-ttf/REMOVE @@ -0,0 +1,15 @@ +_files=" + 20-unhint-small-dejavu-sans-mono.conf + 20-unhint-small-dejavu-sans.conf + 20-unhint-small-dejavu-serif.conf + 57-dejavu-sans-mono.conf + 57-dejavu-sans.conf + 57-dejavu-serif.conf" + +case ${ACTION} in +post) + for f in ${_files}; do + rm -f etc/fonts/conf.d/${f} + done + ;; +esac diff --git a/srcpkgs/dejavu-fonts-ttf/template b/srcpkgs/dejavu-fonts-ttf/template index 448865f3237..711214fc896 100644 --- a/srcpkgs/dejavu-fonts-ttf/template +++ b/srcpkgs/dejavu-fonts-ttf/template @@ -1,25 +1,23 @@ # Template file for 'dejavu-fonts-ttf' pkgname=dejavu-fonts-ttf version=2.33 -distfiles="${SOURCEFORGE_SITE}/dejavu/$pkgname-$version.tar.bz2" -fulldepends="font-util" -revision=1 +revision=2 short_desc="DejaVu family of TrueType fonts" maintainer="Juan RP " +homepage="http://dejavu-fonts.org/wiki/Main_Page" +license="MIT, Public domain" +distfiles="${SOURCEFORGE_SITE}/dejavu/$pkgname-$version.tar.bz2" checksum=82a5823a270715913af51915cc20594568f57afb7450abb989695d8808a4194d -long_desc=" - DejaVu is a family of fonts derived from the Bitstream Vera family. - It provides a wider range of characters than the original. These - TrueType fonts include serif, sans serif, monospaced, and experimental - condensed serif and sans serif families with regular (Roman), Bold, - Oblique and Bold Oblique typefaces." noarch=yes +fulldepends="font-util" font_dirs="/usr/share/fonts/TTF" +do_install() { + vmkdir usr/share/fonts/TTF + install -m644 ttf/*.ttf ${DESTDIR}/usr/share/fonts/TTF + vmkdir etc/fonts/conf.avail + install -m644 fontconfig/*.conf ${DESTDIR}/etc/fonts/conf.avail -do_install() -{ - mkdir -p ${DESTDIR}/usr/share/fonts/TTF - install -m644 ${wrksrc}/ttf/*.ttf ${DESTDIR}/usr/share/fonts/TTF + vinstall LICENSE 644 usr/share/licenses/${pkgname} }