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

Felix Yan felixonmars at archlinux.org
Sun May 30 22:22:44 UTC 2021


    Date: Sunday, May 30, 2021 @ 22:22:44
  Author: felixonmars
Revision: 950837

archrelease: copy trunk to community-any

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

------------------------------+
 44-source-han-serif-cn.conf  |   36 ++---
 44-source-han-serif-jp.conf  |   36 ++---
 44-source-han-serif-kr.conf  |   36 ++---
 44-source-han-serif-otc.conf |   84 +++++------
 44-source-han-serif-tw.conf  |   36 ++---
 PKGBUILD                     |  292 ++++++++++++++++++++---------------------
 6 files changed, 261 insertions(+), 259 deletions(-)

Deleted: 44-source-han-serif-cn.conf
===================================================================
--- 44-source-han-serif-cn.conf	2021-05-30 22:22:18 UTC (rev 950836)
+++ 44-source-han-serif-cn.conf	2021-05-30 22:22:44 UTC (rev 950837)
@@ -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 Serif CN Medium</string>
-		</test>
-		<edit name="weight" mode="assign">
-			<const>demibold</const>
-		</edit>
-	</match>
-</fontconfig>

Copied: adobe-source-han-serif-fonts/repos/community-any/44-source-han-serif-cn.conf (from rev 950836, adobe-source-han-serif-fonts/trunk/44-source-han-serif-cn.conf)
===================================================================
--- 44-source-han-serif-cn.conf	                        (rev 0)
+++ 44-source-han-serif-cn.conf	2021-05-30 22:22:44 UTC (rev 950837)
@@ -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 Serif CN Medium</string>
+		</test>
+		<edit name="weight" mode="assign">
+			<const>demibold</const>
+		</edit>
+	</match>
+</fontconfig>

Deleted: 44-source-han-serif-jp.conf
===================================================================
--- 44-source-han-serif-jp.conf	2021-05-30 22:22:18 UTC (rev 950836)
+++ 44-source-han-serif-jp.conf	2021-05-30 22:22:44 UTC (rev 950837)
@@ -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 Serif JP Medium</string>
-        </test>
-        <edit name="weight" mode="assign">
-            <const>demibold</const>
-        </edit>
-    </match>
-</fontconfig>

Copied: adobe-source-han-serif-fonts/repos/community-any/44-source-han-serif-jp.conf (from rev 950836, adobe-source-han-serif-fonts/trunk/44-source-han-serif-jp.conf)
===================================================================
--- 44-source-han-serif-jp.conf	                        (rev 0)
+++ 44-source-han-serif-jp.conf	2021-05-30 22:22:44 UTC (rev 950837)
@@ -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 Serif JP Medium</string>
+        </test>
+        <edit name="weight" mode="assign">
+            <const>demibold</const>
+        </edit>
+    </match>
+</fontconfig>

Deleted: 44-source-han-serif-kr.conf
===================================================================
--- 44-source-han-serif-kr.conf	2021-05-30 22:22:18 UTC (rev 950836)
+++ 44-source-han-serif-kr.conf	2021-05-30 22:22:44 UTC (rev 950837)
@@ -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 Serif KR Medium</string>
-        </test>
-        <edit name="weight" mode="assign">
-            <const>demibold</const>
-        </edit>
-    </match>
-</fontconfig>

Copied: adobe-source-han-serif-fonts/repos/community-any/44-source-han-serif-kr.conf (from rev 950836, adobe-source-han-serif-fonts/trunk/44-source-han-serif-kr.conf)
===================================================================
--- 44-source-han-serif-kr.conf	                        (rev 0)
+++ 44-source-han-serif-kr.conf	2021-05-30 22:22:44 UTC (rev 950837)
@@ -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 Serif KR Medium</string>
+        </test>
+        <edit name="weight" mode="assign">
+            <const>demibold</const>
+        </edit>
+    </match>
+</fontconfig>

Deleted: 44-source-han-serif-otc.conf
===================================================================
--- 44-source-han-serif-otc.conf	2021-05-30 22:22:18 UTC (rev 950836)
+++ 44-source-han-serif-otc.conf	2021-05-30 22:22:44 UTC (rev 950837)
@@ -1,42 +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 Serif J Medium</string>
-		</test>
-		<edit name="weight" mode="assign">
-			<const>demibold</const>
-		</edit>
-	</match>
-	<match target="scan">
-		<test name="fullname" compare="eq">
-			<string>Source Han Serif 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 Serif 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 Serif TC Medium</string>
-		</test>
-		<edit name="weight" mode="assign">
-			<const>demibold</const>
-		</edit>
-	</match>
-</fontconfig>

Copied: adobe-source-han-serif-fonts/repos/community-any/44-source-han-serif-otc.conf (from rev 950836, adobe-source-han-serif-fonts/trunk/44-source-han-serif-otc.conf)
===================================================================
--- 44-source-han-serif-otc.conf	                        (rev 0)
+++ 44-source-han-serif-otc.conf	2021-05-30 22:22:44 UTC (rev 950837)
@@ -0,0 +1,42 @@
+<?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 Serif J Medium</string>
+		</test>
+		<edit name="weight" mode="assign">
+			<const>demibold</const>
+		</edit>
+	</match>
+	<match target="scan">
+		<test name="fullname" compare="eq">
+			<string>Source Han Serif 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 Serif 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 Serif TC Medium</string>
+		</test>
+		<edit name="weight" mode="assign">
+			<const>demibold</const>
+		</edit>
+	</match>
+</fontconfig>

Deleted: 44-source-han-serif-tw.conf
===================================================================
--- 44-source-han-serif-tw.conf	2021-05-30 22:22:18 UTC (rev 950836)
+++ 44-source-han-serif-tw.conf	2021-05-30 22:22:44 UTC (rev 950837)
@@ -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 Serif TWHK Medium</string>
-        </test>
-        <edit name="weight" mode="assign">
-            <const>demibold</const>
-        </edit>
-    </match>
-</fontconfig>

Copied: adobe-source-han-serif-fonts/repos/community-any/44-source-han-serif-tw.conf (from rev 950836, adobe-source-han-serif-fonts/trunk/44-source-han-serif-tw.conf)
===================================================================
--- 44-source-han-serif-tw.conf	                        (rev 0)
+++ 44-source-han-serif-tw.conf	2021-05-30 22:22:44 UTC (rev 950837)
@@ -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 Serif TWHK Medium</string>
+        </test>
+        <edit name="weight" mode="assign">
+            <const>demibold</const>
+        </edit>
+    </match>
+</fontconfig>

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-30 22:22:18 UTC (rev 950836)
+++ PKGBUILD	2021-05-30 22:22:44 UTC (rev 950837)
@@ -1,145 +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-serif-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-serif-jp-fonts
-#   * Regional subset with only Korean glyphs + Latin
-#   -> adobe-source-han-serif-kr-fonts
-#   * Regional subset with only Simplified Chinese glyphs + Latin
-#   -> adobe-source-han-serif-cn-fonts
-#   * Regional subset with only Traditional Chinese glyphs + Latin
-#   -> adobe-source-han-serif-tw-fonts
-
-_pkgbase=adobe-source-han-serif
-pkgbase=$_pkgbase-fonts
-pkgname=($_pkgbase-jp-fonts $_pkgbase-kr-fonts $_pkgbase-cn-fonts $_pkgbase-tw-fonts $_pkgbase-otc-fonts)
-pkgver=1.001
-pkgrel=4
-pkgdesc='Adobe Source Han Serif - A set of Pan-CJK fonts designed to complement Source Serif Pro'
-arch=('any')
-license=('Apache')
-url='https://github.com/adobe-fonts/source-han-serif'
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/adobe-fonts/source-han-serif/archive/${pkgver}R.tar.gz"
-        44-source-han-serif-jp.conf
-        44-source-han-serif-kr.conf
-        44-source-han-serif-cn.conf
-        44-source-han-serif-tw.conf
-        44-source-han-serif-otc.conf)
-sha512sums=('f393c02550e5724c074edaaf896fab2ac3473af165b39bbed718bdba9a3d42fffbecf28637287f3ecf958502dee18231b4e9b8f64d133001856e65aacf3290a9'
-            '2586f4bb85fe6c4089c65a4b972d5f543ac0459ca7160b7c23cb746720d59d7dcc81ec9eef762de34835fb8e40df65cee9c6ead628bd3bcb52544c517355a965'
-            '21d8e6afcc537a1679e44e2438626202086ea766c7540ef3361b6c1a05e09870a37e0d3b1ad8300e66bc5c8138daf62b22f793089b37d1803279df2c31e6c2ff'
-            '4ca2948c0801ba5f3a3955ff1d4fac1b08ab7c5c3eed8af8e73f71b488a80d2736318006859681c0ba5760048f5e89df700e46fc49710d02d43eafb5816e3db5'
-            'd2046664196eb705564187e2452dbd8df1a0c4cd4289306f82621aa7bcd625f6cf3dcf2e16a88c2ee24f3c4c41cdc1677264393c0e110ecd2088668a42e4b723'
-            'a180c15c87d5f3879c671c2d72adad97a431a94df2c958ba7d9eb60966111a4c342c174a700e07a3ffa32753f729a824d911c1e69e94436f57fcc77bb1743a0b')
-
-_jp=(
-SourceHanSerifJP-Bold.otf
-SourceHanSerifJP-ExtraLight.otf
-SourceHanSerifJP-Heavy.otf
-SourceHanSerifJP-Light.otf
-SourceHanSerifJP-Medium.otf
-SourceHanSerifJP-SemiBold.otf
-SourceHanSerifJP-Regular.otf
-)
-_kr=(
-SourceHanSerifKR-Bold.otf
-SourceHanSerifKR-ExtraLight.otf
-SourceHanSerifKR-Heavy.otf
-SourceHanSerifKR-Light.otf
-SourceHanSerifKR-Medium.otf
-SourceHanSerifKR-SemiBold.otf
-SourceHanSerifKR-Regular.otf
-)
-_cn=(
-SourceHanSerifCN-Bold.otf
-SourceHanSerifCN-ExtraLight.otf
-SourceHanSerifCN-Heavy.otf
-SourceHanSerifCN-Light.otf
-SourceHanSerifCN-Medium.otf
-SourceHanSerifCN-SemiBold.otf
-SourceHanSerifCN-Regular.otf
-)
-_tw=(
-SourceHanSerifTW-Bold.otf
-SourceHanSerifTW-ExtraLight.otf
-SourceHanSerifTW-Heavy.otf
-SourceHanSerifTW-Light.otf
-SourceHanSerifTW-Medium.otf
-SourceHanSerifTW-SemiBold.otf
-SourceHanSerifTW-Regular.otf
-)
-_otc=(
-SourceHanSerif-Bold.ttc
-SourceHanSerif-ExtraLight.ttc
-SourceHanSerif-Heavy.ttc
-SourceHanSerif-Light.ttc
-SourceHanSerif-Medium.ttc
-SourceHanSerif-SemiBold.ttc
-SourceHanSerif-Regular.ttc
-)
-
-function _package {
-    cd "$srcdir/source-han-serif-${pkgver}R"
-
-    case "$1" in
-        $_pkgbase-jp-fonts)
-            fonts=(${_jp[@]})
-            cd SubsetOTF/JP
-            _fontconfig_filename=44-source-han-serif-jp.conf
-            pkgdesc="Adobe Source Han Serif Subset OTF - Japanese OpenType/CFF fonts";;
-        $_pkgbase-kr-fonts)
-            fonts=(${_kr[@]})
-            cd SubsetOTF/KR
-            _fontconfig_filename=44-source-han-serif-kr.conf
-            pkgdesc="Adobe Source Han Serif Subset OTF - Korean OpenType/CFF fonts";;
-        $_pkgbase-cn-fonts)
-            fonts=(${_cn[@]})
-            cd SubsetOTF/CN
-            _fontconfig_filename=44-source-han-serif-cn.conf
-            pkgdesc="Adobe Source Han Serif Subset OTF - Simplified Chinese OpenType/CFF fonts";;
-        $_pkgbase-tw-fonts)
-            fonts=(${_tw[@]})
-            cd SubsetOTF/TW
-            _fontconfig_filename=44-source-han-serif-tw.conf
-            conflicts=("$_pkgbase-twhk-fonts")
-            replaces=("$_pkgbase-twhk-fonts")
-            pkgdesc="Adobe Source Han Serif Subset OTF - Traditional Chinese OpenType/CFF fonts";;
-        $_pkgbase-otc-fonts)
-            fonts=(${_otc[@]})
-            cd OTC
-            _fontconfig_filename=44-source-han-serif-otc.conf
-            pkgdesc="Adobe Source Han Serif - Pan-CJK OpenType/CFF Collection fonts";;
-    esac
-
-    # Prepare destination directory
-    install -dm755 "$pkgdir/usr/share/fonts/adobe-source-han-serif"
-
-    # Install fonts
-    for font in "${fonts[@]}"; do
-        install -m644 "$font" "$pkgdir/usr/share/fonts/adobe-source-han-serif"
-    done
-
-    # Install fontconfig fix
-    install -d "$pkgdir/usr/share/fontconfig/conf.default"
-    install -Dm644 "$srcdir/$_fontconfig_filename" "$pkgdir/usr/share/fontconfig/conf.avail/$_fontconfig_filename"
-    ln -s ../conf.avail/$_fontconfig_filename "$pkgdir/usr/share/fontconfig/conf.default/$_fontconfig_filename"
-}
-
-for _pkgname in ${pkgname[@]}; do
-    eval "function package_$_pkgname() { _package $_pkgname; }"
-done

Copied: adobe-source-han-serif-fonts/repos/community-any/PKGBUILD (from rev 950836, adobe-source-han-serif-fonts/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-05-30 22:22:44 UTC (rev 950837)
@@ -0,0 +1,147 @@
+# 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-serif-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-serif-jp-fonts
+#   * Regional subset with only Korean glyphs + Latin
+#   -> adobe-source-han-serif-kr-fonts
+#   * Regional subset with only Simplified Chinese glyphs + Latin
+#   -> adobe-source-han-serif-cn-fonts
+#   * Regional subset with only Traditional Chinese glyphs + Latin
+#   -> adobe-source-han-serif-tw-fonts
+
+_pkgbase=adobe-source-han-serif
+pkgbase=$_pkgbase-fonts
+pkgname=($_pkgbase-jp-fonts $_pkgbase-kr-fonts $_pkgbase-cn-fonts $_pkgbase-tw-fonts $_pkgbase-otc-fonts)
+pkgver=1.001
+pkgrel=5
+pkgdesc='Adobe Source Han Serif - A set of Pan-CJK fonts designed to complement Source Serif Pro'
+arch=('any')
+license=('custom:SIL')
+url='https://github.com/adobe-fonts/source-han-serif'
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/adobe-fonts/source-han-serif/archive/${pkgver}R.tar.gz"
+        44-source-han-serif-jp.conf
+        44-source-han-serif-kr.conf
+        44-source-han-serif-cn.conf
+        44-source-han-serif-tw.conf
+        44-source-han-serif-otc.conf)
+sha512sums=('f393c02550e5724c074edaaf896fab2ac3473af165b39bbed718bdba9a3d42fffbecf28637287f3ecf958502dee18231b4e9b8f64d133001856e65aacf3290a9'
+            '2586f4bb85fe6c4089c65a4b972d5f543ac0459ca7160b7c23cb746720d59d7dcc81ec9eef762de34835fb8e40df65cee9c6ead628bd3bcb52544c517355a965'
+            '21d8e6afcc537a1679e44e2438626202086ea766c7540ef3361b6c1a05e09870a37e0d3b1ad8300e66bc5c8138daf62b22f793089b37d1803279df2c31e6c2ff'
+            '4ca2948c0801ba5f3a3955ff1d4fac1b08ab7c5c3eed8af8e73f71b488a80d2736318006859681c0ba5760048f5e89df700e46fc49710d02d43eafb5816e3db5'
+            'd2046664196eb705564187e2452dbd8df1a0c4cd4289306f82621aa7bcd625f6cf3dcf2e16a88c2ee24f3c4c41cdc1677264393c0e110ecd2088668a42e4b723'
+            'a180c15c87d5f3879c671c2d72adad97a431a94df2c958ba7d9eb60966111a4c342c174a700e07a3ffa32753f729a824d911c1e69e94436f57fcc77bb1743a0b')
+
+_jp=(
+SourceHanSerifJP-Bold.otf
+SourceHanSerifJP-ExtraLight.otf
+SourceHanSerifJP-Heavy.otf
+SourceHanSerifJP-Light.otf
+SourceHanSerifJP-Medium.otf
+SourceHanSerifJP-SemiBold.otf
+SourceHanSerifJP-Regular.otf
+)
+_kr=(
+SourceHanSerifKR-Bold.otf
+SourceHanSerifKR-ExtraLight.otf
+SourceHanSerifKR-Heavy.otf
+SourceHanSerifKR-Light.otf
+SourceHanSerifKR-Medium.otf
+SourceHanSerifKR-SemiBold.otf
+SourceHanSerifKR-Regular.otf
+)
+_cn=(
+SourceHanSerifCN-Bold.otf
+SourceHanSerifCN-ExtraLight.otf
+SourceHanSerifCN-Heavy.otf
+SourceHanSerifCN-Light.otf
+SourceHanSerifCN-Medium.otf
+SourceHanSerifCN-SemiBold.otf
+SourceHanSerifCN-Regular.otf
+)
+_tw=(
+SourceHanSerifTW-Bold.otf
+SourceHanSerifTW-ExtraLight.otf
+SourceHanSerifTW-Heavy.otf
+SourceHanSerifTW-Light.otf
+SourceHanSerifTW-Medium.otf
+SourceHanSerifTW-SemiBold.otf
+SourceHanSerifTW-Regular.otf
+)
+_otc=(
+SourceHanSerif-Bold.ttc
+SourceHanSerif-ExtraLight.ttc
+SourceHanSerif-Heavy.ttc
+SourceHanSerif-Light.ttc
+SourceHanSerif-Medium.ttc
+SourceHanSerif-SemiBold.ttc
+SourceHanSerif-Regular.ttc
+)
+
+function _package {
+    cd "$srcdir/source-han-serif-${pkgver}R"
+
+    case "$1" in
+        $_pkgbase-jp-fonts)
+            fonts=(${_jp[@]})
+            cd SubsetOTF/JP
+            _fontconfig_filename=44-source-han-serif-jp.conf
+            pkgdesc="Adobe Source Han Serif Subset OTF - Japanese OpenType/CFF fonts";;
+        $_pkgbase-kr-fonts)
+            fonts=(${_kr[@]})
+            cd SubsetOTF/KR
+            _fontconfig_filename=44-source-han-serif-kr.conf
+            pkgdesc="Adobe Source Han Serif Subset OTF - Korean OpenType/CFF fonts";;
+        $_pkgbase-cn-fonts)
+            fonts=(${_cn[@]})
+            cd SubsetOTF/CN
+            _fontconfig_filename=44-source-han-serif-cn.conf
+            pkgdesc="Adobe Source Han Serif Subset OTF - Simplified Chinese OpenType/CFF fonts";;
+        $_pkgbase-tw-fonts)
+            fonts=(${_tw[@]})
+            cd SubsetOTF/TW
+            _fontconfig_filename=44-source-han-serif-tw.conf
+            conflicts=("$_pkgbase-twhk-fonts")
+            replaces=("$_pkgbase-twhk-fonts")
+            pkgdesc="Adobe Source Han Serif Subset OTF - Traditional Chinese OpenType/CFF fonts";;
+        $_pkgbase-otc-fonts)
+            fonts=(${_otc[@]})
+            cd OTC
+            _fontconfig_filename=44-source-han-serif-otc.conf
+            pkgdesc="Adobe Source Han Serif - Pan-CJK OpenType/CFF Collection fonts";;
+    esac
+
+    # Prepare destination directory
+    install -dm755 "$pkgdir/usr/share/fonts/adobe-source-han-serif"
+
+    # Install fonts
+    for font in "${fonts[@]}"; do
+        install -m644 "$font" "$pkgdir/usr/share/fonts/adobe-source-han-serif"
+    done
+
+    # Install fontconfig fix
+    install -d "$pkgdir/usr/share/fontconfig/conf.default"
+    install -Dm644 "$srcdir/$_fontconfig_filename" "$pkgdir/usr/share/fontconfig/conf.avail/$_fontconfig_filename"
+    ln -s ../conf.avail/$_fontconfig_filename "$pkgdir/usr/share/fontconfig/conf.default/$_fontconfig_filename"
+
+    install -Dm644 "$srcdir"/source-han-serif-${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