Andrew Geissler | 5082cc7 | 2023-09-11 08:41:39 -0400 | [diff] [blame] | 1 | SUMMARY = "Google Fira Fonts- TTF Edition" |
| 2 | HOMEPAGE = "https://fonts.google.com/?query=fira" |
| 3 | LICENSE = "OFL-1.1" |
| 4 | LIC_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 | |
| 12 | SRCREV_FORMAT = "firamono_firacode_firasans_firasanscondensed_firasansextracondensed" |
| 13 | |
| 14 | SRCREV_firamono = "701bd391b1a4b3238de193a8523009ecef1be42c" |
| 15 | SRCREV_firacode = "701bd391b1a4b3238de193a8523009ecef1be42c" |
| 16 | SRCREV_firasans = "701bd391b1a4b3238de193a8523009ecef1be42c" |
| 17 | SRCREV_firasanscondensed = "701bd391b1a4b3238de193a8523009ecef1be42c" |
| 18 | SRCREV_firasansextracondensed = "701bd391b1a4b3238de193a8523009ecef1be42c" |
| 19 | |
| 20 | SRC_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 | |
| 26 | S = "${WORKDIR}" |
| 27 | |
| 28 | do_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 | |
| 38 | PACKAGES =+ "${PN}-mono ${PN}-code ${PN}-sans ${PN}-sanscondensed ${PN}-sansextracondensed" |
| 39 | |
| 40 | FILES:${PN}-mono += " \ |
| 41 | ${datadir}/fonts/truetype/FiraMono* \ |
| 42 | ${datadir}/licenses/${PN}mono/OFL.txt \ |
| 43 | " |
| 44 | FILES:${PN}-code += " \ |
| 45 | ${datadir}/fonts/truetype/FiraCode* \ |
| 46 | ${datadir}/licenses/${PN}code/OFL.txt \ |
| 47 | " |
| 48 | FILES:${PN}-sans += " \ |
| 49 | ${datadir}/fonts/truetype/FiraSans-* \ |
| 50 | ${datadir}/licenses/${PN}sans/OFL.txt \ |
| 51 | " |
| 52 | FILES:${PN}-sanscondensed += " \ |
| 53 | ${datadir}/fonts/truetype/FiraSansCondensed-* \ |
| 54 | ${datadir}/licenses/${PN}sanscondensed/OFL.txt \ |
| 55 | " |
| 56 | FILES:${PN}-sansextracondensed += " \ |
| 57 | ${datadir}/fonts/truetype/FiraSansExtraCondensed-* \ |
| 58 | ${datadir}/licenses/${PN}sansextracondensed/OFL.txt \ |
| 59 | " |
| 60 | |
| 61 | require ttf.inc |