1require ttf.inc
2
3SUMMARY = "WenQuanYi Zen Hei - A Hei-Ti Style Chinese font"
4HOMEPAGE = "http://wenq.org/"
5LICENSE = "GPL-2.0-only"
6LIC_FILES_CHKSUM = "file://COPYING;md5=cf540fc7d35b5777e36051280b3a911c"
7
8SRC_URI = "${SOURCEFORGE_MIRROR}/wqy/wqy-zenhei-${PV}.tar.gz"
9SRC_URI[sha256sum] = "e4b7e306475bf9427d1757578f0e4528930c84c44eaa3f167d4c42f110ee75d6"
10
11UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/wqy/files/wqy-zenhei/"
12UPSTREAM_CHECK_REGEX = "wqy-zenhei/(?P<pver>\d+(\.\d+)+)"
13
14S = "${WORKDIR}/wqy-zenhei"
15
16do_install:append () {
17    sed -i -e '/<string>[^W]/d' ${S}/44-wqy-zenhei.conf
18    install -d ${D}${sysconfdir}/fonts/conf.d
19
20    for x in ${S}/*.conf; do
21        install -m 0644 $x ${D}${sysconfdir}/fonts/conf.d/
22    done
23}
24
25PACKAGES = "${PN}"
26FONT_PACKAGES = "${PN}"
27
28FILES:${PN} = "${datadir}/fonts ${sysconfdir}"
29