From a08d00569366122e671a2062183f958d2d84eda5 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 7 Apr 2011 09:27:32 +0200 Subject: [PATCH] Added cantarell-fonts-0.0.6 build template. --HG-- branch : gnome3 --- srcpkgs/cantarell-fonts/INSTALL | 10 ++++++++++ srcpkgs/cantarell-fonts/REMOVE | 10 ++++++++++ srcpkgs/cantarell-fonts/template | 25 +++++++++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 srcpkgs/cantarell-fonts/INSTALL create mode 100644 srcpkgs/cantarell-fonts/REMOVE create mode 100644 srcpkgs/cantarell-fonts/template diff --git a/srcpkgs/cantarell-fonts/INSTALL b/srcpkgs/cantarell-fonts/INSTALL new file mode 100644 index 00000000000..e614314b42d --- /dev/null +++ b/srcpkgs/cantarell-fonts/INSTALL @@ -0,0 +1,10 @@ +# +# This script builds fontconfig's fonts cache. +# +case "${ACTION}" in +post) + echo "Building fonts cache... " + fc-cache -f >/dev/null + echo "done." + ;; +esac diff --git a/srcpkgs/cantarell-fonts/REMOVE b/srcpkgs/cantarell-fonts/REMOVE new file mode 100644 index 00000000000..e614314b42d --- /dev/null +++ b/srcpkgs/cantarell-fonts/REMOVE @@ -0,0 +1,10 @@ +# +# This script builds fontconfig's fonts cache. +# +case "${ACTION}" in +post) + echo "Building fonts cache... " + fc-cache -f >/dev/null + echo "done." + ;; +esac diff --git a/srcpkgs/cantarell-fonts/template b/srcpkgs/cantarell-fonts/template new file mode 100644 index 00000000000..67b70fe4285 --- /dev/null +++ b/srcpkgs/cantarell-fonts/template @@ -0,0 +1,25 @@ +# Template file for 'cantarell-fonts' +pkgname=cantarell-fonts +version=0.0.6 +distfiles="${GNOME_SITE}/$pkgname/0.0/$pkgname-$version.tar.bz2" +build_style=gnu_configure +short_desc="Cantarell family of TrueType fonts" +maintainer="Juan RP " +checksum=bf2cce939aeea3244f6786cd6b09dd40e63d65fadd5f3e37f354baf68d4d91df +long_desc=" + The Cantarell typeface family is a contemporary Humanist + sans serif, and is used by the GNOME project for its user + interface and the Fedora project." + +noarch=yes +Add_dependency build pkg-config +Add_dependency full fontconfig + +post_install() +{ + install -d ${DESTDIR}/etc/fonts/conf.d + mv ${DESTDIR}/usr/share/fontconfig/conf.avail \ + ${DESTDIR}/etc/fonts/conf.avail + rmdir ${DESTDIR}/usr/share/fontconfig + ln -s ../conf.avail/31-cantarell.conf ${DESTDIR}/etc/fonts/conf.d +}