summaryrefslogtreecommitdiffstats
path: root/main/ttf-dejavu/APKBUILD
blob: ba2af8ab2d5395ceb9ab6a1ea991edf6daeb842b (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
36
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ttf-dejavu
pkgver=2.32
pkgrel=1
arch="noarch"
pkgdesc="Font family based on the Bitstream Vera Fonts with a wider range of characters"
url="http://dejavu.sourceforge.net/"
license="custom"
depends="fontconfig encodings mkfontdir mkfontscale"
makedepends="pkgconfig font-util-dev"
install=
source="http://downloads.sourceforge.net/project/dejavu/dejavu/${pkgver}/dejavu-fonts-ttf-${pkgver}.tar.bz2
	http://downloads.sourceforge.net/project/dejavu/dejavu/${pkgver}/dejavu-lgc-fonts-ttf-${pkgver}.tar.bz2
	"

build() {
	return 0
}

package() {
	mkdir -p "$pkgdir/usr/share/fonts/TTF" \
		"$pkgdir"/etc/fonts/conf.avail \
		|| return 1
	for i in dejavu-fonts-ttf-$pkgver dejavu-lgc-fonts-ttf-$pkgver; do
		cd "$srcdir"/$i
		install -m644 ttf/*.ttf "$pkgdir"/usr/share/fonts/TTF/ \
			|| return 1
		install -m644 fontconfig/*.conf \
			"$pkgdir"/etc/fonts/conf.avail/ || return 1
	done
	install -D -m644 LICENSE \
		"$pkgdir/usr/share/licenses/ttf-dejavu/LICENSE" || return 1
}

md5sums="63b1bf644cd54188a2ec43aff1846104  dejavu-fonts-ttf-2.32.tar.bz2
2813b852ded0c1c89264627ce1bfcadc  dejavu-lgc-fonts-ttf-2.32.tar.bz2"