aboutsummaryrefslogblamecommitdiffstats
path: root/testing/wqy-zenhei/APKBUILD
blob: 846637853b1c17542fab0893e5c8cf215a7587ab (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                        
                 



                                
                                                                      




























                                                                                                                                                                      
# Contributor: Ivan Tham <pickfire@riseup.net>
# Maintainer: Ivan Tham <pickfire@riseup.net>
pkgname=wqy-zenhei
pkgver=0.9.45
pkgrel=0
pkgdesc="Hei-Ti style (sans-serif) Chinese outline font"
url="http://wenq.org/wqy2/index.cgi?ZenHei"
arch="noarch"
license="GPL-2.0"
depends="fontconfig mkfontscale"
makedepends=""
install=""
subpackages=""
source="https://downloads.sourceforge.net/wqy/wqy-zenhei-0.9.45.tar.gz
	44-wqy-zenhei.conf
	91-wqy-zenhei.conf"
builddir="$srcdir/"

build() {
	return 0
}

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

	install -m644 "$srcdir"/$pkgname/$pkgname.ttc \
		"$pkgdir"/usr/share/fonts/wenquanyi/$pkgname || return 1

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

	sed '/<!-- /d' "$srcdir"/$pkgname/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"