[arch-commits] Commit in (4 files)

François Charette francois at archlinux.org
Fri Apr 10 09:45:02 EDT 2009


    Date: Friday, April 10, 2009 @ 09:45:02
  Author: francois
Revision: 34618

moved ttf-linux-libertine from community

Added:
  ttf-linux-libertine/
  ttf-linux-libertine/trunk/
  ttf-linux-libertine/trunk/PKGBUILD
  ttf-linux-libertine/trunk/libertine.install

-------------------+
 PKGBUILD          |   33 +++++++++++++++++++++++++++++++++
 libertine.install |   22 ++++++++++++++++++++++
 2 files changed, 55 insertions(+)

Added: ttf-linux-libertine/trunk/PKGBUILD
===================================================================
--- ttf-linux-libertine/trunk/PKGBUILD	                        (rev 0)
+++ ttf-linux-libertine/trunk/PKGBUILD	2009-04-10 13:45:02 UTC (rev 34618)
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD,v 1.7 2009/04/05 09:41:36 firmicus Exp $
+# Maintainer: Firmicus <francois.archlinux.org>
+# Contributor: Lukas Jirkovsky <l.jirkovsky at gmail.com>
+# Contributor: <AttilaH©web.de>
+
+pkgname=ttf-linux-libertine
+pkgver=4.4.1
+pkgrel=2
+pkgdesc="Serif (Libertine) and Sans Serif (Biolinum) OpenType fonts with large Unicode coverage"
+arch=('i686' 'x86_64')
+license=('GPL' 'custom:OFL')
+url="http://linuxlibertine.sourceforge.net/"
+depends=('fontconfig' 'xorg-fonts-encodings' 'xorg-font-utils')
+install=libertine.install
+source=(http://downloads.sourceforge.net/sourceforge/linuxlibertine/LinLibertineFont-$pkgver.tgz)
+md5sums=('297f537b31693c92c1aceaa0aeccb115')
+
+build() {
+  cd ${startdir}/src/LinLibertineFont
+  install -d -m 755 $pkgdir/usr/share/fonts/{OTF,TTF} || return 1
+  for f in *.ttf; do
+    name=$(echo $f | cut -f 1 -d '-');
+    mv $f $name.ttf;
+  done
+  for f in *.otf ; do
+    name=$(echo $f | cut -f 1 -d '-');
+    mv $f $name.otf;
+  done
+  install -m644 *.ttf $pkgdir/usr/share/fonts/TTF || return 1
+  install -m644 *.otf $pkgdir/usr/share/fonts/OTF || return 1
+  install -D -m644 OFL.txt $startdir/pkg/usr/share/licenses/$pkgname/LICENSE || return 1
+  install -D -m644 LICENCE.txt $startdir/pkg/usr/share/licenses/$pkgname/README || return 1
+}

Added: ttf-linux-libertine/trunk/libertine.install
===================================================================
--- ttf-linux-libertine/trunk/libertine.install	                        (rev 0)
+++ ttf-linux-libertine/trunk/libertine.install	2009-04-10 13:45:02 UTC (rev 34618)
@@ -0,0 +1,22 @@
+post_install() {
+  echo -n "Updating font cache... "
+  fc-cache -f > /dev/null
+  mkfontscale /usr/share/fonts/TTF
+  mkfontdir /usr/share/fonts/TTF
+  mkfontscale /usr/share/fonts/OTF
+  mkfontdir /usr/share/fonts/OTF
+  echo "done."
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+post_remove() {
+  post_install $1
+}
+
+op=$1
+shift
+
+$op $*



More information about the arch-commits mailing list