diff options
| author | Andreas Müller <schnitzeltony@gmail.com> | 2020-09-12 12:55:13 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2020-09-12 13:40:36 -0700 |
| commit | b362a0a2dad537dc25485df413f09e4495b395c0 (patch) | |
| tree | fe83093cad34838de8791fd5e3a6cff60f190e2c /meta-oe/recipes-graphics/ttf-fonts | |
| parent | 73263bbfe2b06158811dca99cfdbf0e2083fc329 (diff) | |
| download | meta-openembedded-b362a0a2dad537dc25485df413f09e4495b395c0.tar.gz | |
Initial add source-code-pro-fonts 2.030_1.050
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-graphics/ttf-fonts')
| -rw-r--r-- | meta-oe/recipes-graphics/ttf-fonts/source-code-pro-fonts/44-source-code-pro-fonts-fontconfig.conf | 17 | ||||
| -rw-r--r-- | meta-oe/recipes-graphics/ttf-fonts/source-code-pro-fonts_2.030_1.050.bb | 29 |
2 files changed, 46 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/ttf-fonts/source-code-pro-fonts/44-source-code-pro-fonts-fontconfig.conf b/meta-oe/recipes-graphics/ttf-fonts/source-code-pro-fonts/44-source-code-pro-fonts-fontconfig.conf new file mode 100644 index 0000000000..badb1b0115 --- /dev/null +++ b/meta-oe/recipes-graphics/ttf-fonts/source-code-pro-fonts/44-source-code-pro-fonts-fontconfig.conf | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | ||
| 3 | <fontconfig> | ||
| 4 | <alias> | ||
| 5 | <family>monospace</family> | ||
| 6 | <prefer> | ||
| 7 | <family>Source Code Pro</family> | ||
| 8 | </prefer> | ||
| 9 | </alias> | ||
| 10 | <alias> | ||
| 11 | <family>Source Code Pro</family> | ||
| 12 | <default> | ||
| 13 | <family>monospace</family> | ||
| 14 | </default> | ||
| 15 | </alias> | ||
| 16 | </fontconfig> | ||
| 17 | |||
diff --git a/meta-oe/recipes-graphics/ttf-fonts/source-code-pro-fonts_2.030_1.050.bb b/meta-oe/recipes-graphics/ttf-fonts/source-code-pro-fonts_2.030_1.050.bb new file mode 100644 index 0000000000..5d10195f73 --- /dev/null +++ b/meta-oe/recipes-graphics/ttf-fonts/source-code-pro-fonts_2.030_1.050.bb | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | require ttf.inc | ||
| 2 | |||
| 3 | SUMMARY = "Adobe Source Code Pro" | ||
| 4 | HOMEPAGE = "https://github.com/adobe-fonts/source-code-pro" | ||
| 5 | LICENSE = "OFL-1.1" | ||
| 6 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=c7c16bdc2c96af797293d68503e5c65c" | ||
| 7 | |||
| 8 | inherit allarch fontcache | ||
| 9 | |||
| 10 | SRC_URI = " \ | ||
| 11 | https://github.com/adobe-fonts/source-code-pro/releases/download/2.030R-ro/1.050R-it/source-code-pro-2.030R-ro-1.050R-it.zip \ | ||
| 12 | file://44-source-code-pro-fonts-fontconfig.conf \ | ||
| 13 | " | ||
| 14 | SRC_URI[sha256sum] = "da2ac159497d31b0c6d9daa8fc390fb8252e75b4a9805ace6a2c9cccaed4932e" | ||
| 15 | S = "${WORKDIR}/source-code-pro-2.030R-ro-1.050R-it" | ||
| 16 | |||
| 17 | do_install() { | ||
| 18 | install -d ${D}${sysconfdir}/fonts/conf.d/ | ||
| 19 | install -m 0644 ${WORKDIR}/44-source-code-pro-fonts-fontconfig.conf ${D}${sysconfdir}/fonts/conf.d/ | ||
| 20 | |||
| 21 | install -d ${D}${datadir}/fonts/truetype/ | ||
| 22 | find ./ -name '*.otf' -exec install -m 0644 {} ${D}${datadir}/fonts/truetype/ \; | ||
| 23 | } | ||
| 24 | |||
| 25 | FILES_${PN} = " \ | ||
| 26 | ${sysconfdir}/fonts \ | ||
| 27 | ${datadir}/fonts \ | ||
| 28 | " | ||
| 29 | |||
