summaryrefslogtreecommitdiffstats
path: root/main/ttf-linux-libertine/APKBUILD
blob: 2837358cd24d1d48f30c14e18dc0b9ceb1c21bb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
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"