liberation-fonts_1.06.bb 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. SUMMARY = "Liberation(tm) Fonts"
  2. DESCRIPTION = "The Liberation(tm) Fonts is a font family originally \
  3. created by Ascender(c) which aims at metric compatibility with \
  4. Arial, Times New Roman, Courier New."
  5. HOMEPAGE = "https://fedorahosted.org/liberation-fonts/"
  6. BUGTRACKER = "https://bugzilla.redhat.com/"
  7. SECTION = "x11/fonts"
  8. LICENSE = "GPLv2"
  9. LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
  10. PACKAGE_ARCH = "all"
  11. RDEPENDS = "fontconfig-utils"
  12. PE = "1"
  13. PR = "r0"
  14. FONTREV = "0.20100721"
  15. SRC_URI = "https://fedorahosted.org/releases/l/i/${BPN}/${BPN}-${PV}.${FONTREV}.tar.gz \
  16. file://30-liberation-aliases.conf"
  17. S = ${WORKDIR}/${BPN}-${PV}.${FONTREV}
  18. do_install () {
  19. install -d ${D}${datadir}/fonts/ttf/
  20. for i in *.ttf; do
  21. install -m 0644 $i ${D}${prefix}/share/fonts/ttf/${i}
  22. done
  23. install -d ${D}${sysconfdir}/fonts/conf.d/
  24. install -m 0644 ${WORKDIR}/30-liberation-aliases.conf ${D}${sysconfdir}/fonts/conf.d/
  25. install -d ${D}${prefix}/share/doc/${PN}/
  26. install -m 0644 License.txt ${D}${datadir}/doc/${PN}/
  27. }
  28. pkg_postinst_${PN} () {
  29. #!/bin/sh
  30. if [ "x$D" != "x" ] ; then
  31. exit 1
  32. fi
  33. fc-cache
  34. }
  35. PACKAGES = "${PN}"
  36. FILES_${PN} += "${sysconfdir} ${datadir}"