xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-graphics/ttf-fonts/liberation-fonts_2.1.5.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "Liberation(tm) Fonts"
2*4882a593SmuzhiyunDESCRIPTION = "The Liberation(tm) Fonts is a font family originally \
3*4882a593Smuzhiyuncreated by Ascender(c) which aims at metric compatibility with \
4*4882a593SmuzhiyunArial, Times New Roman, Courier New."
5*4882a593SmuzhiyunHOMEPAGE = "https://github.com/liberationfonts/liberation-fonts"
6*4882a593SmuzhiyunBUGTRACKER = "https://bugzilla.redhat.com/"
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunSECTION = "x11/fonts"
9*4882a593SmuzhiyunLICENSE = "OFL-1.1"
10*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://LICENSE;md5=f96db970a9a46c5369142b99f530366b"
11*4882a593SmuzhiyunPE = "1"
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunSRC_URI = "https://github.com/liberationfonts/liberation-fonts/files/7261482/liberation-fonts-ttf-${PV}.tar.gz \
14*4882a593Smuzhiyun           file://30-liberation-aliases.conf"
15*4882a593SmuzhiyunSRC_URI[sha256sum] = "7191c669bf38899f73a2094ed00f7b800553364f90e2637010a69c0e268f25d0"
16*4882a593SmuzhiyunUPSTREAM_CHECK_URI = "https://github.com/liberationfonts/liberation-fonts/releases"
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunS = "${WORKDIR}/liberation-fonts-ttf-${PV}"
19*4882a593Smuzhiyun
20*4882a593Smuzhiyuninherit allarch fontcache
21*4882a593Smuzhiyun
22*4882a593Smuzhiyundo_install () {
23*4882a593Smuzhiyun	install -d ${D}${datadir}/fonts/ttf/
24*4882a593Smuzhiyun	for i in *.ttf; do
25*4882a593Smuzhiyun		install -m 0644 $i ${D}${prefix}/share/fonts/ttf/${i}
26*4882a593Smuzhiyun	done
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun	install -d ${D}${sysconfdir}/fonts/conf.d/
29*4882a593Smuzhiyun	install -m 0644 ${WORKDIR}/30-liberation-aliases.conf ${D}${sysconfdir}/fonts/conf.d/
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun	install -d ${D}${prefix}/share/doc/${BPN}/
32*4882a593Smuzhiyun	install -m 0644 LICENSE ${D}${datadir}/doc/${BPN}/
33*4882a593Smuzhiyun}
34*4882a593Smuzhiyun
35*4882a593SmuzhiyunPACKAGES = "${PN}"
36*4882a593SmuzhiyunFILES:${PN} += "${sysconfdir} ${datadir}"
37*4882a593Smuzhiyun
38*4882a593SmuzhiyunBBCLASSEXTEND = "native nativesdk"
39