aboutsummaryrefslogtreecommitdiffstats
path: root/testing/wqy-zenhei/APKBUILD
blob: f86b88ffb69120514e2e3aa5d4935a623123bf70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Contributor: Ivan Tham <pickfire@riseup.net>
# Maintainer: Ivan Tham <pickfire@riseup.net>
pkgname=wqy-zenhei
pkgver=0.9.47
pkgrel=0
pkgdesc="Hei-Ti style (sans-serif) Chinese outline font"
options="!check" # No testsuite
url="http://wenq.org/wqy2/index.cgi?ZenHei"
arch="noarch"
license="GPL-2.0"
depends="fontconfig mkfontscale"
source="https://downloads.sourceforge.net/wqy/wqy-zenhei-0.9.45.tar.gz
	44-wqy-zenhei.conf
	91-wqy-zenhei.conf"
builddir="$srcdir/$pkgname"

package() {
	mkdir -p "$pkgdir"/usr/share/fonts/wenquanyi/$pkgname \
		"$pkgdir"/etc/fonts/conf.avail \
		"$pkgdir"/etc/fonts/conf.d

	install -m644 "$builddir"/$pkgname.ttc \
		"$pkgdir"/usr/share/fonts/wenquanyi/$pkgname

	for j in "$srcdir"/*.conf; do
		install -m644 "$j" "$pkgdir"/etc/fonts/conf.avail
		ln -sf /etc/fonts/conf.avail/${j##*/} \
			"$pkgdir"/etc/fonts/conf.d/${j##*/}
	done

	sed '/<!-- /d' "$builddir"/43-wqy-zenhei-sharp.conf \
		> "$pkgdir"/etc/fonts/conf.avail/43-wqy-zenhei-sharp.conf
}

sha512sums="02bc35891696453e4f730c7e2e3147566b4efc3a30f8d5cf81b1b8f244c629c76d0d812b74555143a5475a70b52d586a6fca52aa2df411649fe0ee2e12fda3a6  wqy-zenhei-0.9.45.tar.gz
4b3a1ab9e978bff484172951322c7d8de41d306dd86c28a3f4ed5ee3adfbd9742dbcf5ccbe6270bef272e2bef35174396b4a519148dbf3623096ebc222887cf6  44-wqy-zenhei.conf
65005c4345ae9a78a680fb5d1c1e6837df827fd8f1ddd305f27b4d61190cad833ea5a728fbdbb73f4af0316e022ebffe9e29363b8ef9ee8730ad2a436ee8d18e  91-wqy-zenhei.conf"