[arch-commits] Commit in wqy-zenhei/repos (4 files)

Jan Steffens heftig at archlinux.org
Sun Mar 28 21:33:33 UTC 2021


    Date: Sunday, March 28, 2021 @ 21:33:32
  Author: heftig
Revision: 907961

archrelease: copy trunk to community-testing-any

Added:
  wqy-zenhei/repos/community-testing-any/
  wqy-zenhei/repos/community-testing-any/44-wqy-zenhei.conf.diff
    (from rev 907960, wqy-zenhei/trunk/44-wqy-zenhei.conf.diff)
  wqy-zenhei/repos/community-testing-any/PKGBUILD
    (from rev 907960, wqy-zenhei/trunk/PKGBUILD)
  wqy-zenhei/repos/community-testing-any/wqy-zenhei.install
    (from rev 907960, wqy-zenhei/trunk/wqy-zenhei.install)

-------------------------+
 44-wqy-zenhei.conf.diff |   14 ++++++++++++++
 PKGBUILD                |   42 ++++++++++++++++++++++++++++++++++++++++++
 wqy-zenhei.install      |   14 ++++++++++++++
 3 files changed, 70 insertions(+)

Copied: wqy-zenhei/repos/community-testing-any/44-wqy-zenhei.conf.diff (from rev 907960, wqy-zenhei/trunk/44-wqy-zenhei.conf.diff)
===================================================================
--- community-testing-any/44-wqy-zenhei.conf.diff	                        (rev 0)
+++ community-testing-any/44-wqy-zenhei.conf.diff	2021-03-28 21:33:32 UTC (rev 907961)
@@ -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-testing-any/PKGBUILD (from rev 907960, wqy-zenhei/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2021-03-28 21:33:32 UTC (rev 907961)
@@ -0,0 +1,42 @@
+# 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=9
+pkgdesc="A Hei Ti Style (sans-serif) Chinese Outline Font."
+arch=('any')
+license=('GPL2' 'custom:"font embedding exception"')
+install=wqy-zenhei.install
+url="https://wenq.org/enindex.cgi"
+depends=(sh)
+source=("https://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')
+b2sums=('00cb4c4f3c6d76f8d81192407813940634c634288a8945fbad0c74642759102d484db875ad5c5be0462ecb4a87c1038893a578c669a70aca80071ebb12c7b154'
+        '2390db80db8d8f95b0d893c0533c9d05be6f164800e6eb22399f899c671dcfabc7803f5c11228beb57981fc4a4a89ebb93a71f8c4b21068e261e62173b1d5cf8')
+
+prepare() {
+  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
+
+  # https://bugs.archlinux.org/task/24177
+  mv 44-wqy-zenhei.conf 65-wqy-zenhei.conf
+}
+
+package() {
+  cd "$srcdir"/$pkgname
+
+  install -Dm644 FONTEXCEPTION -t "$pkgdir"/usr/share/licenses/$pkgname
+  install -Dm644 *.ttc -t "$pkgdir"/usr/share/fonts/wenquanyi/wqy-zenhei
+  install -Dm644 *.conf -t "$pkgdir"/usr/share/fontconfig/conf.avail
+  install -Dm755 zenheiset -t "$pkgdir"/usr/bin
+  install -d "$pkgdir"/usr/share/fontconfig/conf.default
+  ln -s ../conf.avail/65-wqy-zenhei.conf -t "$pkgdir"/usr/share/fontconfig/conf.default
+  # ln -s ../conf.avail/43-wqy-zenhei-sharp.conf -t "$pkgdir"/usr/share/fontconfig/conf.default
+}

Copied: wqy-zenhei/repos/community-testing-any/wqy-zenhei.install (from rev 907960, wqy-zenhei/trunk/wqy-zenhei.install)
===================================================================
--- community-testing-any/wqy-zenhei.install	                        (rev 0)
+++ community-testing-any/wqy-zenhei.install	2021-03-28 21:33:32 UTC (rev 907961)
@@ -0,0 +1,14 @@
+post_install() {
+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 /usr/share/fontconfig/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