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

Felix Yan felixonmars at archlinux.org
Thu May 18 06:05:37 UTC 2017


    Date: Thursday, May 18, 2017 @ 06:05:36
  Author: felixonmars
Revision: 228458

archrelease: copy trunk to community-any

Added:
  adobe-source-han-serif-fonts/repos/community-any/44-source-han-serif-cn.conf
    (from rev 228457, 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 228457, 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 228457, 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 228457, 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 228457, adobe-source-han-serif-fonts/trunk/44-source-han-serif-tw.conf)
  adobe-source-han-serif-fonts/repos/community-any/PKGBUILD
    (from rev 228457, adobe-source-han-serif-fonts/trunk/PKGBUILD)
  adobe-source-han-serif-fonts/repos/community-any/fonts.install
    (from rev 228457, adobe-source-han-serif-fonts/trunk/fonts.install)
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
  adobe-source-han-serif-fonts/repos/community-any/fonts.install

------------------------------+
 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                     |  296 ++++++++++++++++++++---------------------
 fonts.install                |   22 +--
 7 files changed, 273 insertions(+), 273 deletions(-)

Deleted: 44-source-han-serif-cn.conf
===================================================================
--- 44-source-han-serif-cn.conf	2017-05-18 06:04:59 UTC (rev 228457)
+++ 44-source-han-serif-cn.conf	2017-05-18 06:05:36 UTC (rev 228458)
@@ -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 228457, 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	2017-05-18 06:05:36 UTC (rev 228458)
@@ -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	2017-05-18 06:04:59 UTC (rev 228457)
+++ 44-source-han-serif-jp.conf	2017-05-18 06:05:36 UTC (rev 228458)
@@ -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 228457, 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	2017-05-18 06:05:36 UTC (rev 228458)
@@ -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	2017-05-18 06:04:59 UTC (rev 228457)
+++ 44-source-han-serif-kr.conf	2017-05-18 06:05:36 UTC (rev 228458)
@@ -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 228457, 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	2017-05-18 06:05:36 UTC (rev 228458)
@@ -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	2017-05-18 06:04:59 UTC (rev 228457)
+++ 44-source-han-serif-otc.conf	2017-05-18 06:05:36 UTC (rev 228458)
@@ -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 228457, 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	2017-05-18 06:05:36 UTC (rev 228458)
@@ -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	2017-05-18 06:04:59 UTC (rev 228457)
+++ 44-source-han-serif-tw.conf	2017-05-18 06:05:36 UTC (rev 228458)
@@ -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 228457, 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	2017-05-18 06:05:36 UTC (rev 228458)
@@ -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	2017-05-18 06:04:59 UTC (rev 228457)
+++ PKGBUILD	2017-05-18 06:05:36 UTC (rev 228458)
@@ -1,148 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at gmail.com>
-# 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.000
-pkgrel=1
-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'
-depends=('fontconfig')
-install="fonts.install"
-source=("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)
-sha256sums=('4962a13bcc28a18d82ca6f8373294a447b85a28e10f9e66beac3f50f29950c01'
-            '11cc3eeddaa03f90e02bc0d2a869dc411ca6e0671ff18330092040fa8f9cb9fb'
-            'c46faa5bce15917837071384281ec9503fe32e44f3e8751b6af9db1da296610a'
-            '9ab6ada83b23f72d961cb27fe62fa7e61aece75e9f8039f77dc09e399dcaf214'
-            '4ae2bd5d82a54ae2e7bc95b2bd8417a583b592d1df98b3934f9e028dfea8b405'
-            'a5843462df591a027e30c0e15865a0e625d4a3fc7ea2068d66ee7059890de0ce')
-
-_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/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-serif-fonts/repos/community-any/PKGBUILD (from rev 228457, adobe-source-han-serif-fonts/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2017-05-18 06:05:36 UTC (rev 228458)
@@ -0,0 +1,148 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+# 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=1
+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'
+depends=('fontconfig')
+install="fonts.install"
+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/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

Deleted: fonts.install
===================================================================
--- fonts.install	2017-05-18 06:04:59 UTC (rev 228457)
+++ fonts.install	2017-05-18 06:05:36 UTC (rev 228458)
@@ -1,11 +0,0 @@
-post_install() {
-  fc-cache -s
-}
-
-post_upgrade() {
-  post_install $1
-}
-
-post_remove() {
-  post_install $1
-}

Copied: adobe-source-han-serif-fonts/repos/community-any/fonts.install (from rev 228457, adobe-source-han-serif-fonts/trunk/fonts.install)
===================================================================
--- fonts.install	                        (rev 0)
+++ fonts.install	2017-05-18 06:05:36 UTC (rev 228458)
@@ -0,0 +1,11 @@
+post_install() {
+  fc-cache -s
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+post_remove() {
+  post_install $1
+}



More information about the arch-commits mailing list