aboutsummaryrefslogtreecommitdiffstats
path: root/main/ttf-linux-libertine/APKBUILD
blob: b4445fc84025fa9c78c601477303a2a87dfddf16 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
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"