summaryrefslogtreecommitdiff
path: root/repo/font-dejavu/font-dejavu.xibuild
blob: ff250e6c9874f5dc86ce3c3c7ad739ce844dbe37 (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
#!/bin/sh

NAME="font-dejavu"
DESC="Font family based on the Bitstream Vera Fonts with a wider range of characters"

MAKEDEPS=" font-util"

PKG_VER=2.37
SOURCE="https://downloads.sourceforge.net/project/dejavu/dejavu/$PKG_VER/dejavu-fonts-ttf-$PKG_VER.tar.bz2"

ADDITIONAL="
45-dejavu.conf
90-tt-dejavu.conf
"

package() {
	mkdir -p	"$PKG_DEST"/etc/fonts/conf.d

	install -Dm644 \
		dejavu-fonts-ttf-$PKG_VER/ttf/*.ttf \
		dejavu-lgc-fonts-ttf-$PKG_VER/ttf/*.ttf \
		-t "$PKG_DEST"/usr/share/fonts/dejavu

	install -Dm644 \
		"$BUILD_ROOT"/dejavu-fonts-ttf-$PKG_VER/fontconfig/*.conf \
		"$BUILD_ROOT"/dejavu-lgc-fonts-ttf-$PKG_VER/fontconfig/*.conf \
		-t "$PKG_DEST"/etc/fonts/conf.avail/

	cd "$PKG_DEST"/etc/fonts/conf.d
	local j
	for j in "$BUILD_ROOT"/*.conf; do
		install -Dm644 "$j" -t "$PKG_DEST"/etc/fonts/conf.avail/
		ln -sf /etc/fonts/conf.avail/${j##*/}
	done
}