summaryrefslogtreecommitdiffstats
path: root/recipes/fonts/ttf-opensans.bb
blob: ad40b81f2f9bc54031c227da8bb15bc5e5bf4479 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
SUMMARY = "Open Sans Fonts"
SECTION = "fonts"
HOMEPAGE = "https://www.google.com/fonts"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE.txt;md5=d273d63619c9aeaf15cdaf76422c4f87"

INHIBIT_DEFAULT_DEPS = "1"

inherit allarch fontcache

SRC_URI = "https://www.google.com/fonts/download?kit=3hvsV99qyKCBS55e5pvb3ltkqrIMaAZWyLYEoB48lSQ;downloadfilename=Open_Sans.zip"
# Google packs fonts package on demand which results in unpredictable md5sum, so disable checksum check
BB_STRICT_CHECKSUM = ""

do_install() {
    install -m 0644 -d ${D}${datadir}/fonts/truetype/opensans
    install -m 0644 ${WORKDIR}/*.ttf ${D}${datadir}/fonts/truetype/opensans
}

PACKAGES = "${PN}"
FILES_${PN} += "${datadir}/fonts/truetype/opensans"