# Maintainer: Natanael Copa pkgname=ttf-linux-libertine pkgver=5.1.3 _date="2011_06_15" pkgrel=0 pkgdesc="Serif (Libertine) and Sans Serif (Biolinum) OpenType fonts with large Unicode coverage" url="http://linuxlibertine.sourceforge.net/" arch="noarch" license="GPL custom:OFL" makedepends= depends="fontconfig encodings mkfontdir mkfontscale" install= subpackages="$pkgname-doc" source="http://downloads.sourceforge.net/project/linuxlibertine/linuxlibertine/$pkgver/LinLibertineTTF-${pkgver}_$_date.tgz" _builddir="$srcdir" build () { local f # strip off the version numbers from the filenames. cd "$_builddir" for f in *.ttf; do mv $f ${f%-[0-9]*}.ttf done } package() { cd "$_builddir" install -d -m 755 "$pkgdir"/usr/share/fonts/TTF install -m644 *.ttf "$pkgdir"/usr/share/fonts/TTF || 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="9164f5e202b1912015e43718fba94cc3 LinLibertineTTF-5.1.3_2011_06_15.tgz"