blob: d618607496cbf0df7d7592800af485fb4e35c0c1 [file] [log] [blame]
Andrew Geissler5082cc72023-09-11 08:41:39 -04001SUMMARY = "Google Fira Fonts- TTF Edition"
2HOMEPAGE = "https://fonts.google.com/?query=fira"
3LICENSE = "OFL-1.1"
4LIC_FILES_CHKSUM = " \
5 file://${S}/firamono/OFL.txt;md5=0373cf792d4b95c61399b94c02702892 \
6 file://${S}/firacode/OFL.txt;md5=c75ca55aa0a5809a854d87db2a8ebf23 \
7 file://${S}/firasans/OFL.txt;md5=de28deb2f8c1f23fd4d6918113ac3ddd \
8 file://${S}/firasanscondensed/OFL.txt;md5=de28deb2f8c1f23fd4d6918113ac3ddd \
9 file://${S}/firasansextracondensed/OFL.txt;md5=de28deb2f8c1f23fd4d6918113ac3ddd \
10"
11
12SRCREV_FORMAT = "firamono_firacode_firasans_firasanscondensed_firasansextracondensed"
13
14SRCREV_firamono = "701bd391b1a4b3238de193a8523009ecef1be42c"
15SRCREV_firacode = "701bd391b1a4b3238de193a8523009ecef1be42c"
16SRCREV_firasans = "701bd391b1a4b3238de193a8523009ecef1be42c"
17SRCREV_firasanscondensed = "701bd391b1a4b3238de193a8523009ecef1be42c"
18SRCREV_firasansextracondensed = "701bd391b1a4b3238de193a8523009ecef1be42c"
19
20SRC_URI = "git://github.com/google/fonts.git;protocol=https;branch=main;subpath=ofl/firamono;name=firamono \
21 git://github.com/google/fonts.git;protocol=https;branch=main;subpath=ofl/firacode;name=firacode \
22 git://github.com/google/fonts.git;protocol=https;branch=main;subpath=ofl/firasans;name=firasans \
23 git://github.com/google/fonts.git;protocol=https;branch=main;subpath=ofl/firasanscondensed;name=firasanscondensed \
24 git://github.com/google/fonts.git;protocol=https;branch=main;subpath=ofl/firasansextracondensed;name=firasansextracondensed"
25
26S = "${WORKDIR}"
27
28do_install:append() {
29 install -d ${D}${datadir}/fonts/truetype/
30 find ${S} -path 'fira*/*.tt[cf]' -exec install -m 0644 {} ${D}${datadir}/fonts/truetype/{} \;
31 install -D -m 0644 ${S}/firamono/OFL.txt ${D}${datadir}/licenses/${PN}mono/OFL.txt
32 install -D -m 0644 ${S}/firacode/OFL.txt ${D}${datadir}/licenses/${PN}code/OFL.txt
33 install -D -m 0644 ${S}/firasans/OFL.txt ${D}${datadir}/licenses/${PN}sans/OFL.txt
34 install -D -m 0644 ${S}/firasanscondensed/OFL.txt ${D}${datadir}/licenses/${PN}sanscondensed/OFL.txt
35 install -D -m 0644 ${S}/firasansextracondensed/OFL.txt ${D}${datadir}/licenses/${PN}sansextracondensed/OFL.txt
36}
37
38PACKAGES =+ "${PN}-mono ${PN}-code ${PN}-sans ${PN}-sanscondensed ${PN}-sansextracondensed"
39
40FILES:${PN}-mono += " \
41 ${datadir}/fonts/truetype/FiraMono* \
42 ${datadir}/licenses/${PN}mono/OFL.txt \
43 "
44FILES:${PN}-code += " \
45 ${datadir}/fonts/truetype/FiraCode* \
46 ${datadir}/licenses/${PN}code/OFL.txt \
47 "
48FILES:${PN}-sans += " \
49 ${datadir}/fonts/truetype/FiraSans-* \
50 ${datadir}/licenses/${PN}sans/OFL.txt \
51 "
52FILES:${PN}-sanscondensed += " \
53 ${datadir}/fonts/truetype/FiraSansCondensed-* \
54 ${datadir}/licenses/${PN}sanscondensed/OFL.txt \
55 "
56FILES:${PN}-sansextracondensed += " \
57 ${datadir}/fonts/truetype/FiraSansExtraCondensed-* \
58 ${datadir}/licenses/${PN}sansextracondensed/OFL.txt \
59 "
60
61require ttf.inc