init
This commit is contained in:
commit
651c51d5e9
|
@ -0,0 +1,4 @@
|
|||
pkg/
|
||||
src/
|
||||
*.deb
|
||||
*.pkg.tar*
|
|
@ -0,0 +1,46 @@
|
|||
<?xml version='1.0'?>
|
||||
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
|
||||
<fontconfig>
|
||||
<match target="font">
|
||||
<test name="family">
|
||||
<string>WenQuanYi Micro Hei</string>
|
||||
</test>
|
||||
<edit name="globaladvance"><bool>false</bool></edit>
|
||||
<edit name="spacing"><int>0</int></edit>
|
||||
<edit name="antialias" mode="assign"><bool>true</bool></edit>
|
||||
<edit name="rh_prefer_bitmaps" mode="assign"><bool>false</bool></edit>
|
||||
<edit name="embeddedbitmap"><bool>false</bool></edit>
|
||||
<edit name="autohint" mode="assign"><bool>false</bool></edit>
|
||||
<edit name="hinting" mode="assign"><bool>true</bool></edit>
|
||||
<edit name="hintstyle" mode="assign"><const>hintslight</const></edit>
|
||||
<edit name="rgba" mode="assign"><const>rgb</const></edit>
|
||||
</match>
|
||||
<match target="font">
|
||||
<test name="family">
|
||||
<string>文泉驿微米黑</string>
|
||||
</test>
|
||||
<edit name="globaladvance"><bool>false</bool></edit>
|
||||
<edit name="spacing"><int>0</int></edit>
|
||||
<edit name="antialias" mode="assign"><bool>true</bool></edit>
|
||||
<edit name="rh_prefer_bitmaps" mode="assign"><bool>false</bool></edit>
|
||||
<edit name="embeddedbitmap"><bool>false</bool></edit>
|
||||
<edit name="autohint" mode="assign"><bool>false</bool></edit>
|
||||
<edit name="hinting" mode="assign"><bool>true</bool></edit>
|
||||
<edit name="hintstyle" mode="assign"><const>hintslight</const></edit>
|
||||
<edit name="rgba" mode="assign"><const>rgb</const></edit>
|
||||
</match>
|
||||
<match target="font">
|
||||
<test name="family">
|
||||
<string>文泉驛微米黑</string>
|
||||
</test>
|
||||
<edit name="globaladvance"><bool>false</bool></edit>
|
||||
<edit name="spacing"><int>0</int></edit>
|
||||
<edit name="antialias" mode="assign"><bool>true</bool></edit>
|
||||
<edit name="rh_prefer_bitmaps" mode="assign"><bool>false</bool></edit>
|
||||
<edit name="embeddedbitmap"><bool>false</bool></edit>
|
||||
<edit name="autohint" mode="assign"><bool>false</bool></edit>
|
||||
<edit name="hinting" mode="assign"><bool>true</bool></edit>
|
||||
<edit name="hintstyle" mode="assign"><const>hintslight</const></edit>
|
||||
<edit name="rgba" mode="assign"><const>rgb</const></edit>
|
||||
</match>
|
||||
</fontconfig>
|
|
@ -0,0 +1,34 @@
|
|||
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
||||
# Contributor: Philacorns <opuspace@gmail.com>
|
||||
|
||||
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 .
|
||||
}
|
Loading…
Reference in New Issue