[arch-commits] Commit in cantarell-fonts/repos (3 files)

Jan Steffens heftig at archlinux.org
Fri Mar 30 13:39:42 UTC 2012


    Date: Friday, March 30, 2012 @ 09:39:42
  Author: heftig
Revision: 154646

archrelease: copy trunk to gnome-unstable-any

Added:
  cantarell-fonts/repos/gnome-unstable-any/
  cantarell-fonts/repos/gnome-unstable-any/PKGBUILD
    (from rev 154645, cantarell-fonts/trunk/PKGBUILD)
  cantarell-fonts/repos/gnome-unstable-any/cantarell-fonts.install
    (from rev 154645, cantarell-fonts/trunk/cantarell-fonts.install)

-------------------------+
 PKGBUILD                |   32 ++++++++++++++++++++++++++++++++
 cantarell-fonts.install |   13 +++++++++++++
 2 files changed, 45 insertions(+)

Copied: cantarell-fonts/repos/gnome-unstable-any/PKGBUILD (from rev 154645, cantarell-fonts/trunk/PKGBUILD)
===================================================================
--- gnome-unstable-any/PKGBUILD	                        (rev 0)
+++ gnome-unstable-any/PKGBUILD	2012-03-30 13:39:42 UTC (rev 154646)
@@ -0,0 +1,32 @@
+# $Id$
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+
+pkgname=cantarell-fonts
+pkgver=0.0.8
+pkgrel=1
+pkgdesc="Cantarell font family for the GNOME desktop"
+arch=('any')
+url="http://abattis.org/cantarell/"
+license=('GPL2')
+depends=('fontconfig')
+install=cantarell-fonts.install
+source=(http://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-${pkgver}.tar.xz)
+sha256sums=('e5468861cee84c034dfc53ed9836a360bea45767873dd7840fe403a06bcc61fb')
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+  ./configure --prefix=/usr
+  make
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+  make DESTDIR="${pkgdir}" install
+
+  mkdir -p "$pkgdir/etc/fonts/conf.d"
+  mv "$pkgdir/usr/share/fontconfig/conf.avail" "$pkgdir/etc/fonts/conf.avail"
+  rmdir "$pkgdir/usr/share/fontconfig"
+  ln -s ../conf.avail/31-cantarell.conf "$pkgdir/etc/fonts/conf.d"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: cantarell-fonts/repos/gnome-unstable-any/cantarell-fonts.install (from rev 154645, cantarell-fonts/trunk/cantarell-fonts.install)
===================================================================
--- gnome-unstable-any/cantarell-fonts.install	                        (rev 0)
+++ gnome-unstable-any/cantarell-fonts.install	2012-03-30 13:39:42 UTC (rev 154646)
@@ -0,0 +1,13 @@
+post_install() {
+  echo -n "Updating font cache... "
+  fc-cache -f > /dev/null
+  echo "done."
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+post_remove() {
+  post_install $1
+}




More information about the arch-commits mailing list