From 7605bc5fdc6fc5523003574511290f4ce4a2739d Mon Sep 17 00:00:00 2001 From: Marc Ferland Date: Fri, 6 Dec 2024 14:30:15 -0500 Subject: [PATCH] ttf-noto-emoji: add recipe TTF Noto Emoji fonts from Google. These will add emojis to the maliit keyboard and also allow displaying the flags in the Settings panel (Region & Language section). Signed-off-by: Marc Ferland --- .../images/core-image-plasma-mobile.bb | 1 + recipes-support/ttf-noto-emoji_2.047.bb | 27 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 recipes-support/ttf-noto-emoji_2.047.bb diff --git a/recipes-integration/images/core-image-plasma-mobile.bb b/recipes-integration/images/core-image-plasma-mobile.bb index ca539db..035ce61 100644 --- a/recipes-integration/images/core-image-plasma-mobile.bb +++ b/recipes-integration/images/core-image-plasma-mobile.bb @@ -19,6 +19,7 @@ IMAGE_INSTALL = " \ sddm-config-plasma-mobile \ packagegroup-plasma-mobile \ ttf-noto \ + ttf-noto-emoji \ " SYSTEMD_DEFAULT_TARGET="graphical.target" diff --git a/recipes-support/ttf-noto-emoji_2.047.bb b/recipes-support/ttf-noto-emoji_2.047.bb new file mode 100644 index 0000000..fef9074 --- /dev/null +++ b/recipes-support/ttf-noto-emoji_2.047.bb @@ -0,0 +1,27 @@ +# SPDX-FileCopyrightText: 2024 Marc Ferland +# +# SPDX-License-Identifier: MIT + +DESCRIPTION = "Google Noto Emoji fonts" +SECTION = "fonts" +HOMEPAGE = "https://fonts.google.com/noto" +LICENSE = "OFL-1.1" +LIC_FILES_CHKSUM = "file://LICENSE;md5=cdc5040ed1e8cf5d3516f5285fd7b636" + +inherit allarch fontcache + +INHIBIT_DEFAULT_DEPS = "1" + +SRC_URI = "git://github.com/googlefonts/noto-emoji.git;protocol=https;branch=main" +SRCREV = "22e564626297b4df0a40570ad81d6c05cc7c38bd" +S = "${WORKDIR}/git" + +FILES:${PN} = "${datadir}/fonts/truetype" + +do_configure[noexec] = "1" +do_compile[noexec] = "1" + +do_install() { + install -d ${D}${datadir}/fonts/truetype/ + install -m 0644 ${S}/fonts/NotoColorEmoji.ttf ${D}${datadir}/fonts/truetype +}