[arch-commits] Commit in wqy-zenhei/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Fri Nov 9 21:56:39 UTC 2018
Date: Friday, November 9, 2018 @ 21:56:37
Author: felixonmars
Revision: 404794
archrelease: copy trunk to community-staging-any
Added:
wqy-zenhei/repos/community-staging-any/
wqy-zenhei/repos/community-staging-any/44-wqy-zenhei.conf.diff
(from rev 404793, wqy-zenhei/trunk/44-wqy-zenhei.conf.diff)
wqy-zenhei/repos/community-staging-any/PKGBUILD
(from rev 404793, wqy-zenhei/trunk/PKGBUILD)
wqy-zenhei/repos/community-staging-any/wqy-zenhei.install
(from rev 404793, wqy-zenhei/trunk/wqy-zenhei.install)
-------------------------+
44-wqy-zenhei.conf.diff | 14 ++++++++++++++
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
wqy-zenhei.install | 15 +++++++++++++++
3 files changed, 70 insertions(+)
Copied: wqy-zenhei/repos/community-staging-any/44-wqy-zenhei.conf.diff (from rev 404793, wqy-zenhei/trunk/44-wqy-zenhei.conf.diff)
===================================================================
--- community-staging-any/44-wqy-zenhei.conf.diff (rev 0)
+++ community-staging-any/44-wqy-zenhei.conf.diff 2018-11-09 21:56:37 UTC (rev 404794)
@@ -0,0 +1,14 @@
+--- 44-wqy-zenhei.conf.org 2009-05-18 00:25:41.000000000 +0400
++++ 44-wqy-zenhei.conf 2012-09-25 19:21:44.000000000 +0400
+@@ -6,7 +6,11 @@
+ <match target="font">
+ <test qual="any" name="family">
+ <string>WenQuanYi Zen Hei</string>
++ </test>
++ <test qual="any" name="family">
+ <string>文泉驿正黑</string>
++ </test>
++ <test qual="any" name="family">
+ <string>文泉驛正黑</string>
+ </test>
+ <edit name="globaladvance"><bool>false</bool></edit>
Copied: wqy-zenhei/repos/community-staging-any/PKGBUILD (from rev 404793, wqy-zenhei/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-11-09 21:56:37 UTC (rev 404794)
@@ -0,0 +1,41 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: JJDaNiMoTh <jjdanimoth.aur at gmail.com>
+# Contributor: zlowly <zlowly [at] archlinux.org>
+
+pkgname=wqy-zenhei
+pkgver=0.9.45
+pkgrel=7
+pkgdesc="A Hei Ti Style (sans-serif) Chinese Outline Font."
+arch=('any')
+license=('GPL2' 'custom:"font embedding exception"')
+install=wqy-zenhei.install
+url="http://wenq.org/enindex.cgi"
+depends=('fontconfig' 'xorg-font-utils')
+source=("http://downloads.sourceforge.net/project/wqy/wqy-zenhei/$pkgver%20%28Fighting-state%20RC1%29/wqy-zenhei-$pkgver.tar.gz"
+ "44-wqy-zenhei.conf.diff")
+md5sums=('4c6c3f4e902dd5ee0a121e8c41d040bd'
+ '1cdbb5dd5ea90faf48cf1ba61077da15')
+
+package() {
+ cd "$srcdir"/$pkgname
+
+ patch -p0 44-wqy-zenhei.conf <"$srcdir"/44-wqy-zenhei.conf.diff
+
+ grep README -e "GPL v2 license with font embedding exception" -A 12 >| FONTEXCEPTION
+
+ mkdir -p "$pkgdir"/usr/share/fonts/wenquanyi/wqy-zenhei/
+ mkdir -p "$pkgdir"/etc/fonts/conf.avail/
+ mkdir -p "$pkgdir"/etc/fonts/conf.d
+
+ install -m644 -D FONTEXCEPTION "$pkgdir"/usr/share/licenses/${pkgname}/FONTEXCEPTION
+ install -m644 *.ttc "$pkgdir"/usr/share/fonts/wenquanyi/wqy-zenhei/
+ install -m644 *.conf "$pkgdir"/etc/fonts/conf.avail/
+ install -m755 -D zenheiset "$pkgdir"/usr/bin/zenheiset
+
+ # https://bugs.archlinux.org/task/24177
+ mv "$pkgdir"/etc/fonts/conf.avail/44-wqy-zenhei.conf "$pkgdir"/etc/fonts/conf.avail/65-wqy-zenhei.conf
+
+ cd "$pkgdir"/etc/fonts/conf.d/
+ ln -s ../conf.avail/65-wqy-zenhei.conf .
+# ln -s ../conf.avail/66-wqy-zenhei-sharp.conf .
+}
Copied: wqy-zenhei/repos/community-staging-any/wqy-zenhei.install (from rev 404793, wqy-zenhei/trunk/wqy-zenhei.install)
===================================================================
--- community-staging-any/wqy-zenhei.install (rev 0)
+++ community-staging-any/wqy-zenhei.install 2018-11-09 21:56:37 UTC (rev 404794)
@@ -0,0 +1,15 @@
+post_install() {
+ echo "wqy-zenhei post install message"
+cat <<EOF
+==> Special Note: By default, we disabled the embedded bitmaps, so that the
+ characters will be displayed as anti-aliased glyphs. Those who want to
+ use bitmap font rendering (for 9pt-12pt) can do the following:
+
+cd /etc/fonts/conf.d
+rm 65-wqy-zenhei.conf
+ln -s ../conf.avail/43-wqy-zenhei-sharp.conf .
+
+ Remove the symlinks 43-wqy-zenhei-sharp.conf and 65-wqy-zenhei.conf from
+ /etc/fonts/conf.d if you have problems with this package.
+EOF
+}
More information about the arch-commits
mailing list