[arch-commits] Commit in adobe-source-han-sans-fonts/repos/community-any (14 files)

Felix Yan felixonmars at archlinux.org
Tue Nov 24 22:19:59 UTC 2020


    Date: Tuesday, November 24, 2020 @ 22:19:58
  Author: felixonmars
Revision: 761019

archrelease: copy trunk to community-any

Added:
  adobe-source-han-sans-fonts/repos/community-any/44-source-han-sans-cn.conf
    (from rev 761018, adobe-source-han-sans-fonts/trunk/44-source-han-sans-cn.conf)
  adobe-source-han-sans-fonts/repos/community-any/44-source-han-sans-hk.conf
    (from rev 761018, adobe-source-han-sans-fonts/trunk/44-source-han-sans-hk.conf)
  adobe-source-han-sans-fonts/repos/community-any/44-source-han-sans-jp.conf
    (from rev 761018, adobe-source-han-sans-fonts/trunk/44-source-han-sans-jp.conf)
  adobe-source-han-sans-fonts/repos/community-any/44-source-han-sans-kr.conf
    (from rev 761018, adobe-source-han-sans-fonts/trunk/44-source-han-sans-kr.conf)
  adobe-source-han-sans-fonts/repos/community-any/44-source-han-sans-otc.conf
    (from rev 761018, adobe-source-han-sans-fonts/trunk/44-source-han-sans-otc.conf)
  adobe-source-han-sans-fonts/repos/community-any/44-source-han-sans-tw.conf
    (from rev 761018, adobe-source-han-sans-fonts/trunk/44-source-han-sans-tw.conf)
  adobe-source-han-sans-fonts/repos/community-any/PKGBUILD
    (from rev 761018, adobe-source-han-sans-fonts/trunk/PKGBUILD)
Deleted:
  adobe-source-han-sans-fonts/repos/community-any/44-source-han-sans-cn.conf
  adobe-source-han-sans-fonts/repos/community-any/44-source-han-sans-hk.conf
  adobe-source-han-sans-fonts/repos/community-any/44-source-han-sans-jp.conf
  adobe-source-han-sans-fonts/repos/community-any/44-source-han-sans-kr.conf
  adobe-source-han-sans-fonts/repos/community-any/44-source-han-sans-otc.conf
  adobe-source-han-sans-fonts/repos/community-any/44-source-han-sans-tw.conf
  adobe-source-han-sans-fonts/repos/community-any/PKGBUILD

-----------------------------+
 44-source-han-sans-cn.conf  |   36 ++--
 44-source-han-sans-hk.conf  |   36 ++--
 44-source-han-sans-jp.conf  |   36 ++--
 44-source-han-sans-kr.conf  |   36 ++--
 44-source-han-sans-otc.conf |  100 ++++++-------
 44-source-han-sans-tw.conf  |   36 ++--
 PKGBUILD                    |  320 +++++++++++++++++++++---------------------
 7 files changed, 301 insertions(+), 299 deletions(-)

Deleted: 44-source-han-sans-cn.conf
===================================================================
--- 44-source-han-sans-cn.conf	2020-11-24 22:19:13 UTC (rev 761018)
+++ 44-source-han-sans-cn.conf	2020-11-24 22:19:58 UTC (rev 761019)
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
-<fontconfig>
-	<!-- 
-	    - Medium variant is used instead of Regular on Qt apps:
-		https://bugs.launchpad.net/ubuntu-font-family/+bug/744812
-		- Medium and Bold looks the same in certain applications:
-		https://bugs.launchpad.net/ubuntu/+source/gnome-specimen/+bug/813373
-	-->
-	<match target="scan">
-		<test name="fullname" compare="eq">
-			<string>Source Han Sans CN Medium</string>
-		</test>
-		<edit name="weight" mode="assign">
-			<const>demibold</const>
-		</edit>
-	</match>
-</fontconfig>

Copied: adobe-source-han-sans-fonts/repos/community-any/44-source-han-sans-cn.conf (from rev 761018, adobe-source-han-sans-fonts/trunk/44-source-han-sans-cn.conf)
===================================================================
--- 44-source-han-sans-cn.conf	                        (rev 0)
+++ 44-source-han-sans-cn.conf	2020-11-24 22:19:58 UTC (rev 761019)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
+<fontconfig>
+	<!-- 
+	    - Medium variant is used instead of Regular on Qt apps:
+		https://bugs.launchpad.net/ubuntu-font-family/+bug/744812
+		- Medium and Bold looks the same in certain applications:
+		https://bugs.launchpad.net/ubuntu/+source/gnome-specimen/+bug/813373
+	-->
+	<match target="scan">
+		<test name="fullname" compare="eq">
+			<string>Source Han Sans CN Medium</string>
+		</test>
+		<edit name="weight" mode="assign">
+			<const>demibold</const>
+		</edit>
+	</match>
+</fontconfig>

Deleted: 44-source-han-sans-hk.conf
===================================================================
--- 44-source-han-sans-hk.conf	2020-11-24 22:19:13 UTC (rev 761018)
+++ 44-source-han-sans-hk.conf	2020-11-24 22:19:58 UTC (rev 761019)
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
-<fontconfig>
-    <!-- 
-        - Medium variant is used instead of Regular on Qt apps:
-        https://bugs.launchpad.net/ubuntu-font-family/+bug/744812
-        - Medium and Bold looks the same in certain applications:
-        https://bugs.launchpad.net/ubuntu/+source/gnome-specimen/+bug/813373
-    -->
-    <match target="scan">
-        <test name="fullname" compare="eq">
-            <string>Source Han Sans HK Medium</string>
-        </test>
-        <edit name="weight" mode="assign">
-            <const>demibold</const>
-        </edit>
-    </match>
-</fontconfig>

Copied: adobe-source-han-sans-fonts/repos/community-any/44-source-han-sans-hk.conf (from rev 761018, adobe-source-han-sans-fonts/trunk/44-source-han-sans-hk.conf)
===================================================================
--- 44-source-han-sans-hk.conf	                        (rev 0)
+++ 44-source-han-sans-hk.conf	2020-11-24 22:19:58 UTC (rev 761019)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
+<fontconfig>
+    <!-- 
+        - Medium variant is used instead of Regular on Qt apps:
+        https://bugs.launchpad.net/ubuntu-font-family/+bug/744812
+        - Medium and Bold looks the same in certain applications:
+        https://bugs.launchpad.net/ubuntu/+source/gnome-specimen/+bug/813373
+    -->
+    <match target="scan">
+        <test name="fullname" compare="eq">
+            <string>Source Han Sans HK Medium</string>
+        </test>
+        <edit name="weight" mode="assign">
+            <const>demibold</const>
+        </edit>
+    </match>
+</fontconfig>

Deleted: 44-source-han-sans-jp.conf
===================================================================
--- 44-source-han-sans-jp.conf	2020-11-24 22:19:13 UTC (rev 761018)
+++ 44-source-han-sans-jp.conf	2020-11-24 22:19:58 UTC (rev 761019)
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
-<fontconfig>
-    <!-- 
-        - Medium variant is used instead of Regular on Qt apps:
-        https://bugs.launchpad.net/ubuntu-font-family/+bug/744812
-        - Medium and Bold looks the same in certain applications:
-        https://bugs.launchpad.net/ubuntu/+source/gnome-specimen/+bug/813373
-    -->
-    <match target="scan">
-        <test name="fullname" compare="eq">
-            <string>Source Han Sans JP Medium</string>
-        </test>
-        <edit name="weight" mode="assign">
-            <const>demibold</const>
-        </edit>
-    </match>
-</fontconfig>

Copied: adobe-source-han-sans-fonts/repos/community-any/44-source-han-sans-jp.conf (from rev 761018, adobe-source-han-sans-fonts/trunk/44-source-han-sans-jp.conf)
===================================================================
--- 44-source-han-sans-jp.conf	                        (rev 0)
+++ 44-source-han-sans-jp.conf	2020-11-24 22:19:58 UTC (rev 761019)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
+<fontconfig>
+    <!-- 
+        - Medium variant is used instead of Regular on Qt apps:
+        https://bugs.launchpad.net/ubuntu-font-family/+bug/744812
+        - Medium and Bold looks the same in certain applications:
+        https://bugs.launchpad.net/ubuntu/+source/gnome-specimen/+bug/813373
+    -->
+    <match target="scan">
+        <test name="fullname" compare="eq">
+            <string>Source Han Sans JP Medium</string>
+        </test>
+        <edit name="weight" mode="assign">
+            <const>demibold</const>
+        </edit>
+    </match>
+</fontconfig>

Deleted: 44-source-han-sans-kr.conf
===================================================================
--- 44-source-han-sans-kr.conf	2020-11-24 22:19:13 UTC (rev 761018)
+++ 44-source-han-sans-kr.conf	2020-11-24 22:19:58 UTC (rev 761019)
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
-<fontconfig>
-    <!-- 
-        - Medium variant is used instead of Regular on Qt apps:
-        https://bugs.launchpad.net/ubuntu-font-family/+bug/744812
-        - Medium and Bold looks the same in certain applications:
-        https://bugs.launchpad.net/ubuntu/+source/gnome-specimen/+bug/813373
-    -->
-    <match target="scan">
-        <test name="fullname" compare="eq">
-            <string>Source Han Sans KR Medium</string>
-        </test>
-        <edit name="weight" mode="assign">
-            <const>demibold</const>
-        </edit>
-    </match>
-</fontconfig>

Copied: adobe-source-han-sans-fonts/repos/community-any/44-source-han-sans-kr.conf (from rev 761018, adobe-source-han-sans-fonts/trunk/44-source-han-sans-kr.conf)
===================================================================
--- 44-source-han-sans-kr.conf	                        (rev 0)
+++ 44-source-han-sans-kr.conf	2020-11-24 22:19:58 UTC (rev 761019)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
+<fontconfig>
+    <!-- 
+        - Medium variant is used instead of Regular on Qt apps:
+        https://bugs.launchpad.net/ubuntu-font-family/+bug/744812
+        - Medium and Bold looks the same in certain applications:
+        https://bugs.launchpad.net/ubuntu/+source/gnome-specimen/+bug/813373
+    -->
+    <match target="scan">
+        <test name="fullname" compare="eq">
+            <string>Source Han Sans KR Medium</string>
+        </test>
+        <edit name="weight" mode="assign">
+            <const>demibold</const>
+        </edit>
+    </match>
+</fontconfig>

Deleted: 44-source-han-sans-otc.conf
===================================================================
--- 44-source-han-sans-otc.conf	2020-11-24 22:19:13 UTC (rev 761018)
+++ 44-source-han-sans-otc.conf	2020-11-24 22:19:58 UTC (rev 761019)
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
-<fontconfig>
-	<!-- 
-	    - Medium variant is used instead of Regular on Qt apps:
-		https://bugs.launchpad.net/ubuntu-font-family/+bug/744812
-		- Medium and Bold looks the same in certain applications:
-		https://bugs.launchpad.net/ubuntu/+source/gnome-specimen/+bug/813373
-	-->
-	<match target="scan">
-		<test name="fullname" compare="eq">
-			<string>Source Han Sans Medium</string>
-		</test>
-		<edit name="weight" mode="assign">
-			<const>demibold</const>
-		</edit>
-	</match>
-	<match target="scan">
-		<test name="fullname" compare="eq">
-			<string>Source Han Sans K Medium</string>
-		</test>
-		<edit name="weight" mode="assign">
-			<const>demibold</const>
-		</edit>
-	</match>
-	<match target="scan">
-		<test name="fullname" compare="eq">
-			<string>Source Han Sans SC Medium</string>
-		</test>
-		<edit name="weight" mode="assign">
-			<const>demibold</const>
-		</edit>
-	</match>
-	<match target="scan">
-		<test name="fullname" compare="eq">
-			<string>Source Han Sans TC Medium</string>
-		</test>
-		<edit name="weight" mode="assign">
-			<const>demibold</const>
-		</edit>
-	</match>
-	<match target="scan">
-                <test name="fullname" compare="eq">
-                        <string>Source Han Sans HC Medium</string>
-                </test>
-                <edit name="weight" mode="assign">
-                        <const>demibold</const>
-                </edit>
-        </match>
-</fontconfig>

Copied: adobe-source-han-sans-fonts/repos/community-any/44-source-han-sans-otc.conf (from rev 761018, adobe-source-han-sans-fonts/trunk/44-source-han-sans-otc.conf)
===================================================================
--- 44-source-han-sans-otc.conf	                        (rev 0)
+++ 44-source-han-sans-otc.conf	2020-11-24 22:19:58 UTC (rev 761019)
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
+<fontconfig>
+	<!-- 
+	    - Medium variant is used instead of Regular on Qt apps:
+		https://bugs.launchpad.net/ubuntu-font-family/+bug/744812
+		- Medium and Bold looks the same in certain applications:
+		https://bugs.launchpad.net/ubuntu/+source/gnome-specimen/+bug/813373
+	-->
+	<match target="scan">
+		<test name="fullname" compare="eq">
+			<string>Source Han Sans Medium</string>
+		</test>
+		<edit name="weight" mode="assign">
+			<const>demibold</const>
+		</edit>
+	</match>
+	<match target="scan">
+		<test name="fullname" compare="eq">
+			<string>Source Han Sans K Medium</string>
+		</test>
+		<edit name="weight" mode="assign">
+			<const>demibold</const>
+		</edit>
+	</match>
+	<match target="scan">
+		<test name="fullname" compare="eq">
+			<string>Source Han Sans SC Medium</string>
+		</test>
+		<edit name="weight" mode="assign">
+			<const>demibold</const>
+		</edit>
+	</match>
+	<match target="scan">
+		<test name="fullname" compare="eq">
+			<string>Source Han Sans TC Medium</string>
+		</test>
+		<edit name="weight" mode="assign">
+			<const>demibold</const>
+		</edit>
+	</match>
+	<match target="scan">
+                <test name="fullname" compare="eq">
+                        <string>Source Han Sans HC Medium</string>
+                </test>
+                <edit name="weight" mode="assign">
+                        <const>demibold</const>
+                </edit>
+        </match>
+</fontconfig>

Deleted: 44-source-han-sans-tw.conf
===================================================================
--- 44-source-han-sans-tw.conf	2020-11-24 22:19:13 UTC (rev 761018)
+++ 44-source-han-sans-tw.conf	2020-11-24 22:19:58 UTC (rev 761019)
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
-<fontconfig>
-    <!-- 
-        - Medium variant is used instead of Regular on Qt apps:
-        https://bugs.launchpad.net/ubuntu-font-family/+bug/744812
-        - Medium and Bold looks the same in certain applications:
-        https://bugs.launchpad.net/ubuntu/+source/gnome-specimen/+bug/813373
-    -->
-    <match target="scan">
-        <test name="fullname" compare="eq">
-            <string>Source Han Sans TW Medium</string>
-        </test>
-        <edit name="weight" mode="assign">
-            <const>demibold</const>
-        </edit>
-    </match>
-</fontconfig>

Copied: adobe-source-han-sans-fonts/repos/community-any/44-source-han-sans-tw.conf (from rev 761018, adobe-source-han-sans-fonts/trunk/44-source-han-sans-tw.conf)
===================================================================
--- 44-source-han-sans-tw.conf	                        (rev 0)
+++ 44-source-han-sans-tw.conf	2020-11-24 22:19:58 UTC (rev 761019)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
+<fontconfig>
+    <!-- 
+        - Medium variant is used instead of Regular on Qt apps:
+        https://bugs.launchpad.net/ubuntu-font-family/+bug/744812
+        - Medium and Bold looks the same in certain applications:
+        https://bugs.launchpad.net/ubuntu/+source/gnome-specimen/+bug/813373
+    -->
+    <match target="scan">
+        <test name="fullname" compare="eq">
+            <string>Source Han Sans TW Medium</string>
+        </test>
+        <edit name="weight" mode="assign">
+            <const>demibold</const>
+        </edit>
+    </match>
+</fontconfig>

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-24 22:19:13 UTC (rev 761018)
+++ PKGBUILD	2020-11-24 22:19:58 UTC (rev 761019)
@@ -1,159 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Sascha Weaver <wzyboy at wzyboy.org>
-
-# This font has four versions:
-#
-# * Multilingual versions with a default language: (OTF)
-#   (We do not package them)
-#   * Multilingual version with Japanese glyphs as default priority
-#   * Multilingual version with Korean glyphs as default priority
-#   * Multilingual version with Simplified Chinese glyphs as default priority
-#   * Multilingual version with Traditional Chinese glyphs as default priority
-# * Multilingual version combined the four versions above. (OTC)
-#   (This version is "the best of the worlds", but it cannot be used in Windows)
-#   -> adobe-source-han-sans-otc-fonts
-# * Multilingual version compressed the 7 files into a single ttc file. (SuperOTC)
-#   (We do not package them, as there's no difference from the OTC version in use)
-# * Regional subsets with only characters used in CN, JP, KR or TW: (SubsetOTF)
-#   (This version is smaller and has better compatibility)
-#   * Regional subset with only Japanese glyphs + Latin
-#   -> adobe-source-han-sans-jp-fonts
-#   * Regional subset with only Korean glyphs + Latin
-#   -> adobe-source-han-sans-kr-fonts
-#   * Regional subset with only Simplified Chinese glyphs + Latin
-#   -> adobe-source-han-sans-cn-fonts
-#   * Regional subset with only Traditional Chinese glyphs + Latin
-#   -> adobe-source-han-sans-tw-fonts
-
-_pkgbase=adobe-source-han-sans
-pkgbase=$_pkgbase-fonts
-pkgname=($_pkgbase-jp-fonts $_pkgbase-kr-fonts $_pkgbase-cn-fonts $_pkgbase-tw-fonts $_pkgbase-hk-fonts $_pkgbase-otc-fonts)
-pkgver=2.001
-pkgrel=2
-pkgdesc='Adobe Source Han Sans - A set of Pan-CJK fonts designed to complement Source Sans Pro'
-arch=('any')
-license=('Apache')
-url='https://github.com/adobe-fonts/source-han-sans'
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/adobe-fonts/source-han-sans/archive/${pkgver}R.tar.gz"
-        44-source-han-sans-jp.conf
-        44-source-han-sans-kr.conf
-        44-source-han-sans-cn.conf
-        44-source-han-sans-tw.conf
-        44-source-han-sans-hk.conf
-        44-source-han-sans-otc.conf)
-sha256sums=('7c515573dd6784d9d2be564f50e0b9bbee4ad560a853ab87a25532b1d8a03582'
-            'f0e87368ffa91ac76b253846836da05baa120ab4f8a7bfd90fded36f4988c9e0'
-            'fa8d487c7ba67489bde7b4d8558e07abb6d8bcb4d4e9db1bf454c2db23af9547'
-            'd42ed0092a47cee5c7ff3972c90676109212dafc2cffb3388a8b339788a6cdb5'
-            '7b5044d70530296f7d61c7edebd2713e065e0a37f225350ad29917cd80aa743e'
-            '9db7eef9e799af448fddb9cafe561bb6d17005f314ec4ac26de474d29215257b'
-            'ab61ea540e96f3026c6595831c99699d777ac5f5a86eabe88cb4b96c60d139b6')
-
-_jp=(
-SourceHanSansJP-Bold.otf
-SourceHanSansJP-ExtraLight.otf
-SourceHanSansJP-Heavy.otf
-SourceHanSansJP-Light.otf
-SourceHanSansJP-Medium.otf
-SourceHanSansJP-Normal.otf
-SourceHanSansJP-Regular.otf
-)
-_kr=(
-SourceHanSansKR-Bold.otf
-SourceHanSansKR-ExtraLight.otf
-SourceHanSansKR-Heavy.otf
-SourceHanSansKR-Light.otf
-SourceHanSansKR-Medium.otf
-SourceHanSansKR-Normal.otf
-SourceHanSansKR-Regular.otf
-)
-_cn=(
-SourceHanSansCN-Bold.otf
-SourceHanSansCN-ExtraLight.otf
-SourceHanSansCN-Heavy.otf
-SourceHanSansCN-Light.otf
-SourceHanSansCN-Medium.otf
-SourceHanSansCN-Normal.otf
-SourceHanSansCN-Regular.otf
-)
-_tw=(
-SourceHanSansTW-Bold.otf
-SourceHanSansTW-ExtraLight.otf
-SourceHanSansTW-Heavy.otf
-SourceHanSansTW-Light.otf
-SourceHanSansTW-Medium.otf
-SourceHanSansTW-Normal.otf
-SourceHanSansTW-Regular.otf
-)
-_hk=(
-SourceHanSansHK-Bold.otf
-SourceHanSansHK-ExtraLight.otf
-SourceHanSansHK-Heavy.otf
-SourceHanSansHK-Light.otf
-SourceHanSansHK-Medium.otf
-SourceHanSansHK-Normal.otf
-SourceHanSansHK-Regular.otf
-)
-_otc=(
-SourceHanSans-Bold.ttc
-SourceHanSans-ExtraLight.ttc
-SourceHanSans-Heavy.ttc
-SourceHanSans-Light.ttc
-SourceHanSans-Medium.ttc
-SourceHanSans-Normal.ttc
-SourceHanSans-Regular.ttc
-)
-
-function _package {
-    cd "$srcdir/source-han-sans-${pkgver}R"
-
-    case "$1" in
-        $_pkgbase-jp-fonts)
-            fonts=(${_jp[@]})
-            cd SubsetOTF/JP
-            _fontconfig_filename=44-source-han-sans-jp.conf
-            pkgdesc="Adobe Source Han Sans Subset OTF - Japanese OpenType/CFF fonts";;
-        $_pkgbase-kr-fonts)
-            fonts=(${_kr[@]})
-            cd SubsetOTF/KR
-            _fontconfig_filename=44-source-han-sans-kr.conf
-            pkgdesc="Adobe Source Han Sans Subset OTF - Korean OpenType/CFF fonts";;
-        $_pkgbase-cn-fonts)
-            fonts=(${_cn[@]})
-            cd SubsetOTF/CN
-            _fontconfig_filename=44-source-han-sans-cn.conf
-            pkgdesc="Adobe Source Han Sans Subset OTF - Simplified Chinese OpenType/CFF fonts";;
-        $_pkgbase-tw-fonts)
-            fonts=(${_tw[@]})
-            cd SubsetOTF/TW
-            _fontconfig_filename=44-source-han-sans-tw.conf
-            pkgdesc="Adobe Source Han Sans Subset OTF - Traditional Chinese (Taiwan) OpenType/CFF fonts";;
-        $_pkgbase-hk-fonts)
-            fonts=(${_hk[@]})
-            cd SubsetOTF/HK
-            _fontconfig_filename=44-source-han-sans-hk.conf
-            pkgdesc="Adobe Source Han Sans Subset OTF - Traditional Chinese (Hong Kong) OpenType/CFF fonts";;
-        $_pkgbase-otc-fonts)
-            fonts=(${_otc[@]})
-            cd OTC
-            _fontconfig_filename=44-source-han-sans-otc.conf
-            pkgdesc="Adobe Source Han Sans - Pan-CJK OpenType/CFF Collection fonts";;
-    esac
-
-    # Prepare destination directory
-    install -dm755 "$pkgdir/usr/share/fonts/adobe-source-han-sans"
-
-    # Install fonts
-    for font in "${fonts[@]}"; do
-        install -m644 "$font" "$pkgdir/usr/share/fonts/adobe-source-han-sans"
-    done
-
-    # Install fontconfig fix
-    install -d "$pkgdir/etc/fonts/conf.d"
-    install -Dm644 "$srcdir/$_fontconfig_filename" "$pkgdir/etc/fonts/conf.avail/$_fontconfig_filename"
-    ln -s ../conf.avail/$_fontconfig_filename "$pkgdir/etc/fonts/conf.d/$_fontconfig_filename"
-}
-
-for _pkgname in ${pkgname[@]}; do
-    eval "function package_$_pkgname() { _package $_pkgname; }"
-done

Copied: adobe-source-han-sans-fonts/repos/community-any/PKGBUILD (from rev 761018, adobe-source-han-sans-fonts/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-11-24 22:19:58 UTC (rev 761019)
@@ -0,0 +1,161 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Sascha Weaver <wzyboy at wzyboy.org>
+
+# This font has four versions:
+#
+# * Multilingual versions with a default language: (OTF)
+#   (We do not package them)
+#   * Multilingual version with Japanese glyphs as default priority
+#   * Multilingual version with Korean glyphs as default priority
+#   * Multilingual version with Simplified Chinese glyphs as default priority
+#   * Multilingual version with Traditional Chinese glyphs as default priority
+# * Multilingual version combined the four versions above. (OTC)
+#   (This version is "the best of the worlds", but it cannot be used in Windows)
+#   -> adobe-source-han-sans-otc-fonts
+# * Multilingual version compressed the 7 files into a single ttc file. (SuperOTC)
+#   (We do not package them, as there's no difference from the OTC version in use)
+# * Regional subsets with only characters used in CN, JP, KR or TW: (SubsetOTF)
+#   (This version is smaller and has better compatibility)
+#   * Regional subset with only Japanese glyphs + Latin
+#   -> adobe-source-han-sans-jp-fonts
+#   * Regional subset with only Korean glyphs + Latin
+#   -> adobe-source-han-sans-kr-fonts
+#   * Regional subset with only Simplified Chinese glyphs + Latin
+#   -> adobe-source-han-sans-cn-fonts
+#   * Regional subset with only Traditional Chinese glyphs + Latin
+#   -> adobe-source-han-sans-tw-fonts
+
+_pkgbase=adobe-source-han-sans
+pkgbase=$_pkgbase-fonts
+pkgname=($_pkgbase-jp-fonts $_pkgbase-kr-fonts $_pkgbase-cn-fonts $_pkgbase-tw-fonts $_pkgbase-hk-fonts $_pkgbase-otc-fonts)
+pkgver=2.002
+pkgrel=1
+pkgdesc='Adobe Source Han Sans - A set of Pan-CJK fonts designed to complement Source Sans Pro'
+arch=('any')
+license=('custom:SIL')
+url='https://github.com/adobe-fonts/source-han-sans'
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/adobe-fonts/source-han-sans/archive/${pkgver}R.tar.gz"
+        44-source-han-sans-jp.conf
+        44-source-han-sans-kr.conf
+        44-source-han-sans-cn.conf
+        44-source-han-sans-tw.conf
+        44-source-han-sans-hk.conf
+        44-source-han-sans-otc.conf)
+sha512sums=('6d4a10557fd1c9859391b18ce5b6270939ff19e7ead9587743863bd419004d3e8d0009ee84cf68f2005277cba03b682bbf8f6f29a925973e4f44ada359029111'
+            '2582097792c2938cf8a04a21795acf6d6640531a8509865111bfbaeb41ce96a632d8f694aae93aa68f375a9f496a3eb8ecd6f6909f81045e2a0a42b432898588'
+            '53aba437f7eddb89826ec1050840081f8f509f860b9bc43c71a7b1a5d294fbc6256a7b8690f9a28b505bc2be63bf77bcf6bf8ae93d7a4783d7f91d0305d84147'
+            'fd1fd6a5cf68a879bd5286642427ba6a01944568106ef186a18942bd0db658e61da8656a23a83468f266e4ec332baa71485a3d91f01333d48cc840909ac3fd5d'
+            '430d0a5e86fdf5c89ca2d12886901dc3dde3bb6f5d7be494e6b404bb0040dc11e591fd642f23e0d92784e8f01d7e27cd90aa2805f4ca6ea2be401405a36a1b20'
+            '40bbac5de07abece7aae291c368325a421a187bf2742f0dc0028ff5722ac2c655a8c854a4371746d76917652921ee7e8e0c96f6635fd48c5238b521b42dcb961'
+            '14342eb8d9eab434b325100707376c28c584a6b7ff3a7b7b67fbc1bf5dbd1918b50000fe47101ee9ca42f60d9272c16fbc1abed5090dbab7b704c10d48a3920b')
+
+_jp=(
+SourceHanSansJP-Bold.otf
+SourceHanSansJP-ExtraLight.otf
+SourceHanSansJP-Heavy.otf
+SourceHanSansJP-Light.otf
+SourceHanSansJP-Medium.otf
+SourceHanSansJP-Normal.otf
+SourceHanSansJP-Regular.otf
+)
+_kr=(
+SourceHanSansKR-Bold.otf
+SourceHanSansKR-ExtraLight.otf
+SourceHanSansKR-Heavy.otf
+SourceHanSansKR-Light.otf
+SourceHanSansKR-Medium.otf
+SourceHanSansKR-Normal.otf
+SourceHanSansKR-Regular.otf
+)
+_cn=(
+SourceHanSansCN-Bold.otf
+SourceHanSansCN-ExtraLight.otf
+SourceHanSansCN-Heavy.otf
+SourceHanSansCN-Light.otf
+SourceHanSansCN-Medium.otf
+SourceHanSansCN-Normal.otf
+SourceHanSansCN-Regular.otf
+)
+_tw=(
+SourceHanSansTW-Bold.otf
+SourceHanSansTW-ExtraLight.otf
+SourceHanSansTW-Heavy.otf
+SourceHanSansTW-Light.otf
+SourceHanSansTW-Medium.otf
+SourceHanSansTW-Normal.otf
+SourceHanSansTW-Regular.otf
+)
+_hk=(
+SourceHanSansHK-Bold.otf
+SourceHanSansHK-ExtraLight.otf
+SourceHanSansHK-Heavy.otf
+SourceHanSansHK-Light.otf
+SourceHanSansHK-Medium.otf
+SourceHanSansHK-Normal.otf
+SourceHanSansHK-Regular.otf
+)
+_otc=(
+SourceHanSans-Bold.ttc
+SourceHanSans-ExtraLight.ttc
+SourceHanSans-Heavy.ttc
+SourceHanSans-Light.ttc
+SourceHanSans-Medium.ttc
+SourceHanSans-Normal.ttc
+SourceHanSans-Regular.ttc
+)
+
+function _package {
+    cd "$srcdir/source-han-sans-${pkgver}R"
+
+    case "$1" in
+        $_pkgbase-jp-fonts)
+            fonts=(${_jp[@]})
+            cd SubsetOTF/JP
+            _fontconfig_filename=44-source-han-sans-jp.conf
+            pkgdesc="Adobe Source Han Sans Subset OTF - Japanese OpenType/CFF fonts";;
+        $_pkgbase-kr-fonts)
+            fonts=(${_kr[@]})
+            cd SubsetOTF/KR
+            _fontconfig_filename=44-source-han-sans-kr.conf
+            pkgdesc="Adobe Source Han Sans Subset OTF - Korean OpenType/CFF fonts";;
+        $_pkgbase-cn-fonts)
+            fonts=(${_cn[@]})
+            cd SubsetOTF/CN
+            _fontconfig_filename=44-source-han-sans-cn.conf
+            pkgdesc="Adobe Source Han Sans Subset OTF - Simplified Chinese OpenType/CFF fonts";;
+        $_pkgbase-tw-fonts)
+            fonts=(${_tw[@]})
+            cd SubsetOTF/TW
+            _fontconfig_filename=44-source-han-sans-tw.conf
+            pkgdesc="Adobe Source Han Sans Subset OTF - Traditional Chinese (Taiwan) OpenType/CFF fonts";;
+        $_pkgbase-hk-fonts)
+            fonts=(${_hk[@]})
+            cd SubsetOTF/HK
+            _fontconfig_filename=44-source-han-sans-hk.conf
+            pkgdesc="Adobe Source Han Sans Subset OTF - Traditional Chinese (Hong Kong) OpenType/CFF fonts";;
+        $_pkgbase-otc-fonts)
+            fonts=(${_otc[@]})
+            cd OTC
+            _fontconfig_filename=44-source-han-sans-otc.conf
+            pkgdesc="Adobe Source Han Sans - Pan-CJK OpenType/CFF Collection fonts";;
+    esac
+
+    # Prepare destination directory
+    install -dm755 "$pkgdir/usr/share/fonts/adobe-source-han-sans"
+
+    # Install fonts
+    for font in "${fonts[@]}"; do
+        install -m644 "$font" "$pkgdir/usr/share/fonts/adobe-source-han-sans"
+    done
+
+    # Install fontconfig fix
+    install -d "$pkgdir/etc/fonts/conf.d"
+    install -Dm644 "$srcdir/$_fontconfig_filename" "$pkgdir/etc/fonts/conf.avail/$_fontconfig_filename"
+    ln -s ../conf.avail/$_fontconfig_filename "$pkgdir/etc/fonts/conf.d/$_fontconfig_filename"
+
+    install -Dm644 "$srcdir"/source-han-sans-${pkgver}R/LICENSE.txt -t "$pkgdir"/usr/share/licenses/$1/
+}
+
+for _pkgname in ${pkgname[@]}; do
+    eval "function package_$_pkgname() { _package $_pkgname; }"
+done



More information about the arch-commits mailing list