summaryrefslogtreecommitdiff
path: root/packages/xorg-fonts/font-common.inc
blob: 37d478bdc6eef71d1839ef847309bfa54be4df31 (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
DESCRIPTION = "X font files"
SECTION = "x11/fonts"
LICENSE= "MIT-X"

SRC_URI = "${XORG_MIRROR}/X11R7.0/src/font/${PN}-X11R7.0-${PV}.tar.bz2"
S = "${WORKDIR}/${PN}-X11R7.0-${PV}"
FONT_DIR = "${datadir}/share/fonts"
DEPENDS = "encodings mkfontscale mkfontdir"

inherit autotools pkgconfig

do_stage () {
	autotools_stage_all
}


FILES_${PN} += " ${libdir}/X11/fonts/*.gz ${libdir}/X11/fonts/*/*.gz"

pkg_postinst_${PN} () {

        if [ "x$D" != "x" ]; then
                exit 1
        fi

        for fontdir in /usr/lib/X11/fonts/* /usr/lib/X11/fonts/*/*  ; do
                if test -d $fontdir ; then
                        mkfontdir $fontdir
                        mkfontscale $fontdir
                fi
        done
}