[arch-commits] Commit in cantarell-fonts/repos (3 files)
Ionut Biru
ibiru at archlinux.org
Tue Oct 18 15:20:48 UTC 2011
Date: Tuesday, October 18, 2011 @ 11:20:48
Author: ibiru
Revision: 140738
archrelease: copy trunk to testing-any
Added:
cantarell-fonts/repos/testing-any/
cantarell-fonts/repos/testing-any/PKGBUILD
(from rev 140737, cantarell-fonts/trunk/PKGBUILD)
cantarell-fonts/repos/testing-any/cantarell-fonts.install
(from rev 140737, cantarell-fonts/trunk/cantarell-fonts.install)
-------------------------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
cantarell-fonts.install | 13 +++++++++++++
2 files changed, 45 insertions(+)
Copied: cantarell-fonts/repos/testing-any/PKGBUILD (from rev 140737, cantarell-fonts/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD (rev 0)
+++ testing-any/PKGBUILD 2011-10-18 15:20:48 UTC (rev 140738)
@@ -0,0 +1,32 @@
+# $Id$
+# Maintainer: Jan "heftig" Steffens <jan.steffens at gmail.com>
+
+pkgname=cantarell-fonts
+pkgver=0.0.7
+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=('6a21f841d28de444deee201a25e5cbc129fde14d633c547a7d36941437f72090')
+
+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/testing-any/cantarell-fonts.install (from rev 140737, cantarell-fonts/trunk/cantarell-fonts.install)
===================================================================
--- testing-any/cantarell-fonts.install (rev 0)
+++ testing-any/cantarell-fonts.install 2011-10-18 15:20:48 UTC (rev 140738)
@@ -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