From 02b98fac8163ea4d1d3b6ccf364838b69fe23046 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 4 Jun 2010 21:25:03 +0000 Subject: main/ttf-linux-libertine: moved from testing --- main/ttf-linux-libertine/APKBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 main/ttf-linux-libertine/APKBUILD (limited to 'main') diff --git a/main/ttf-linux-libertine/APKBUILD b/main/ttf-linux-libertine/APKBUILD new file mode 100644 index 000000000..2837358cd --- /dev/null +++ b/main/ttf-linux-libertine/APKBUILD @@ -0,0 +1,35 @@ +# Maintainer: Natanael Copa +pkgname=ttf-linux-libertine +pkgver=4.4.1 +pkgrel=0 +pkgdesc="Serif (Libertine) and Sans Serif (Biolinum) OpenType fonts with large Unicode coverage" +url="http://linuxlibertine.sourceforge.net/" +license="GPL custom:OFL" +makedepends= +depends="fontconfig encodings mkfontdir mkfontscale" +install= +subpackages="$pkgname-doc" +source="http://downloads.sourceforge.net/sourceforge/linuxlibertine/LinLibertineFont-$pkgver.tgz" + +build () { + local f + # strip off the version numbers from the filenames. + cd "$srcdir"/LinLibertineFont + for f in *.ttf; do + mv $f ${f%-[0-9]*}.ttf + done + for f in *.otf; do + mv $f ${f%-[0-9]*}.otf + done +} + +package() { + cd "$srcdir"/LinLibertineFont + install -d -m 755 "$pkgdir"/usr/share/fonts/OTF \ + "$pkgdir"/usr/share/fonts/TTF + 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 "$pkgdir"/usr/share/licenses/$pkgname/LICENSE || return 1 + install -D -m644 LICENCE.txt "$pkgdir"/usr/share/licenses/$pkgname/README || return 1 +} +md5sums="297f537b31693c92c1aceaa0aeccb115 LinLibertineFont-4.4.1.tgz" -- cgit v1.2.3