diff options
| author | Tymoteusz Burak <tymoteusz.burak@3mdeb.com> | 2023-08-18 14:36:36 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-08-19 10:46:14 -0700 |
| commit | c1dd0ff02dc804002cdf0a05b1742623612e524e (patch) | |
| tree | 36cb6e3736fea1c5b37913f92c16301d5e18ddfd | |
| parent | d7a39f04c8ba67acb7f621023746698e35c337e8 (diff) | |
| download | meta-openembedded-c1dd0ff02dc804002cdf0a05b1742623612e524e.tar.gz | |
ttf-google-fira: add recipe
Signed-off-by: Tymoteusz Burak <tymoteusz.burak@3mdeb.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-graphics/ttf-fonts/ttf-google-fira.bb | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/ttf-fonts/ttf-google-fira.bb b/meta-oe/recipes-graphics/ttf-fonts/ttf-google-fira.bb new file mode 100644 index 0000000000..d618607496 --- /dev/null +++ b/meta-oe/recipes-graphics/ttf-fonts/ttf-google-fira.bb | |||
| @@ -0,0 +1,61 @@ | |||
| 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 | ||
