# Maintainer: Felix Yan # Contributor: Philacorns pkgname=wqy-microhei-krfix _pkgname=wqy-microhei pkgver=0.2.0_beta pkgrel=3 pkgdesc="A Sans-Serif style high quality CJK outline font. Uses ttf from Ubuntu package." arch=('any') provides=('wqy-microhei') url="https://wenq.org" _ubuntu_pkgname=fonts-wqy-microhei _ubuntu_pkgver=0.2.0-beta _ubuntu_pkgrel=3 _deb_file=${_ubuntu_pkgname}_${_ubuntu_pkgver}-${_ubuntu_pkgrel}_all.deb source=("https://mirrors.kernel.org/ubuntu/pool/universe/${_ubuntu_pkgname:0:1}/${_ubuntu_pkgname}/${_deb_file}" '44-wqy-microhei.conf') sha512sums=('71a034c9d4e60d5a75c4ff42b1c707a3b7353dadbd9c23c29063f498a7d78946ae6b0415d2042f6f0d0cddbe1a362c494a2b621f1701fb27ef886c728fa7eac0' 'e443a5289b24ab1c405b3f1b5548f18bf1a63c54796e2e072c996680326de333ce2fb8d97aa41dbd5ac2cab99af1105e6c1a0f19313f832aa43ec4d6939f8b9e') build() { tar -xf data.tar.xz zcat "usr/share/doc/${_ubuntu_pkgname}/README.txt.gz" | tail --lines=16 | head --lines=-3 >| FONTEXCEPTION } package() { install -d "$pkgdir"/etc/fonts/conf.d/ install -Dm644 "$srcdir"/44-wqy-microhei.conf "$pkgdir"/etc/fonts/conf.avail/44-wqy-microhei.conf install -Dm644 "$srcdir"/usr/share/fonts/truetype/wqy/wqy-microhei.ttc "$pkgdir"/usr/share/fonts/wenquanyi/$_pkgname/wqy-microhei.ttc install -Dm644 "$srcdir"/FONTEXCEPTION "$pkgdir"/usr/share/licenses/$_pkgname/FONTEXCEPTION cd "$pkgdir"/etc/fonts/conf.d/ ln -s ../conf.avail/44-wqy-microhei.conf . }