Skip to content
Snippets Groups Projects
Commit 4240ef58 authored by Gatis Paeglis's avatar Gatis Paeglis
Browse files

Install fonts with help of Yocto recipes


Install fonts with help of Yocto recipes instead of
installing fonts from many "random" shell scripts and
b2qt-launcher repository.

Change-Id: I906d022cfab1dfabeca1a8cd0b4c39cc8a886842
Task-number: QTEE-757
Reviewed-by: default avatarSamuli Piippo <samuli.piippo@digia.com>
Reviewed-by: default avatarKalle Viironen <kalle.viironen@digia.com>
parent e2ef75f1
No related branches found
No related tags found
No related merge requests found
SUMMARY = "Lohit Devanagari Fonts"
SECTION = "fonts"
HOMEPAGE = "https://fedorahosted.org/lohit/"
LICENSE = "OFL-1.1"
LIC_FILES_CHKSUM = "file://${WORKDIR}/lohit-devanagari-ttf-${PV}/OFL.txt;md5=7dfa0a236dc535ad2d2548e6170c4402"
INHIBIT_DEFAULT_DEPS = "1"
inherit allarch fontcache
SRC_URI = "https://fedorahosted.org/releases/l/o/lohit/lohit-devanagari-ttf-${PV}.tar.gz"
SRC_URI[md5sum] = "57527ee536a18b443cf786d4b8fd5ec8"
SRC_URI[sha256sum] = "a6618aeb1d25df46d3c22e528c38ea1d1147654e19904497a1e97f4684c55353"
do_install() {
install -m 0644 -d ${D}${datadir}/fonts/truetype/lohit
install -m 0644 -d ${D}${sysconfdir}/fonts/conf.d/
install -m 0644 ${WORKDIR}/lohit-devanagari-ttf-${PV}/66-lohit-devanagari.conf ${D}${sysconfdir}/fonts/conf.d/
install -m 0644 ${WORKDIR}/lohit-devanagari-ttf-${PV}/Lohit-Devanagari.ttf ${D}${datadir}/fonts/truetype/lohit
}
PACKAGES = "${PN}"
FILES_${PN} += "${datadir}/fonts/truetype/lohit"
SUMMARY = "Open Sans Fonts"
SECTION = "fonts"
HOMEPAGE = "https://www.google.com/fonts"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE.txt;md5=d273d63619c9aeaf15cdaf76422c4f87"
INHIBIT_DEFAULT_DEPS = "1"
inherit allarch fontcache
SRC_URI = "https://www.google.com/fonts/download?kit=3hvsV99qyKCBS55e5pvb3ltkqrIMaAZWyLYEoB48lSQ;downloadfilename=Open_Sans.zip"
# Google packs fonts package on demand which results in unpredictable md5sum, so disable checksum check
BB_STRICT_CHECKSUM = ""
do_install() {
install -m 0644 -d ${D}${datadir}/fonts/truetype/opensans
install -m 0644 ${WORKDIR}/*.ttf ${D}${datadir}/fonts/truetype/opensans
}
PACKAGES = "${PN}"
FILES_${PN} += "${datadir}/fonts/truetype/opensans"
......@@ -47,5 +47,9 @@ RDEPENDS_${PN} = "\
hunspell \
ca-certificates \
linux-firmware \
ttf-devanagari \
ttf-opensans \
ttf-dejavu-common \
ttf-dejavu-sans \
${MACHINE_EXTRA_INSTALL} \
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment