commit 651c51d5e9b763022701d31a772c50d612203b69 Author: Yiyang Kang Date: Mon Sep 14 18:51:06 2020 +0800 init diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7861b8d --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +pkg/ +src/ +*.deb +*.pkg.tar* diff --git a/44-wqy-microhei.conf b/44-wqy-microhei.conf new file mode 100644 index 0000000..14bc23c --- /dev/null +++ b/44-wqy-microhei.conf @@ -0,0 +1,46 @@ + + + + + + WenQuanYi Micro Hei + + false + 0 + true + false + false + false + true + hintslight + rgb + + + + 文泉驿微米黑 + + false + 0 + true + false + false + false + true + hintslight + rgb + + + + 文泉驛微米黑 + + false + 0 + true + false + false + false + true + hintslight + rgb + + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..41e941a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# 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 . +}