source-han-sans-cn-fonts_1.004.bb 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. require ttf.inc
  2. SUMMARY = "Adobe OpenType Pan-CJK font family for Simplified Chinese"
  3. HOMEPAGE = "https://github.com/adobe-fonts/source-han-sans"
  4. LICENSE = "OFL-1.1"
  5. LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=55719faa0112708e946b820b24b14097"
  6. inherit allarch fontcache
  7. # Download tends to break - so - or not?
  8. #EXCLUDE_FROM_WORLD = "1"
  9. SRC_URI = " \
  10. https://github.com/adobe-fonts/source-han-sans/raw/release/SubsetOTF/SourceHanSansCN.zip \
  11. file://44-source-han-sans-cn.conf \
  12. "
  13. SRC_URI[md5sum] = "d16abc21f6575bb08894efedbed484a2"
  14. SRC_URI[sha256sum] = "0a0e1d8e52833bc352d454d8242da03b82c0efc41323fb66f7435e5b39734a4f"
  15. S = "${WORKDIR}/SourceHanSansCN"
  16. do_install() {
  17. install -d ${D}${sysconfdir}/fonts/conf.d/
  18. install -m 0644 ${WORKDIR}/44-source-han-sans-cn.conf ${D}${sysconfdir}/fonts/conf.d/
  19. install -d ${D}${datadir}/fonts/truetype/
  20. find ./ -name '*.otf' -exec install -m 0644 {} ${D}${datadir}/fonts/truetype/ \;
  21. }
  22. FILES_${PN} = " \
  23. ${sysconfdir}/fonts \
  24. ${datadir}/fonts \
  25. "