[arch-commits] Commit in adobe-source-han-serif-fonts/repos (8 files)
Felix Yan
felixonmars at archlinux.org
Tue Apr 4 15:12:43 UTC 2017
Date: Tuesday, April 4, 2017 @ 15:12:42
Author: felixonmars
Revision: 220482
archrelease: copy trunk to community-any
Added:
adobe-source-han-serif-fonts/repos/community-any/
adobe-source-han-serif-fonts/repos/community-any/44-source-han-serif-cn.conf
(from rev 220481, 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 220481, 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 220481, 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 220481, 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 220481, adobe-source-han-serif-fonts/trunk/44-source-han-serif-tw.conf)
adobe-source-han-serif-fonts/repos/community-any/PKGBUILD
(from rev 220481, adobe-source-han-serif-fonts/trunk/PKGBUILD)
adobe-source-han-serif-fonts/repos/community-any/fonts.install
(from rev 220481, adobe-source-han-serif-fonts/trunk/fonts.install)
------------------------------+
44-source-han-serif-cn.conf | 18 ++++
44-source-han-serif-jp.conf | 18 ++++
44-source-han-serif-kr.conf | 18 ++++
44-source-han-serif-otc.conf | 42 +++++++++++
44-source-han-serif-tw.conf | 18 ++++
PKGBUILD | 148 +++++++++++++++++++++++++++++++++++++++++
fonts.install | 11 +++
7 files changed, 273 insertions(+)
Copied: adobe-source-han-serif-fonts/repos/community-any/44-source-han-serif-cn.conf (from rev 220481, adobe-source-han-serif-fonts/trunk/44-source-han-serif-cn.conf)
===================================================================
--- community-any/44-source-han-serif-cn.conf (rev 0)
+++ community-any/44-source-han-serif-cn.conf 2017-04-04 15:12:42 UTC (rev 220482)
@@ -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>
Copied: adobe-source-han-serif-fonts/repos/community-any/44-source-han-serif-jp.conf (from rev 220481, adobe-source-han-serif-fonts/trunk/44-source-han-serif-jp.conf)
===================================================================
--- community-any/44-source-han-serif-jp.conf (rev 0)
+++ community-any/44-source-han-serif-jp.conf 2017-04-04 15:12:42 UTC (rev 220482)
@@ -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>
Copied: adobe-source-han-serif-fonts/repos/community-any/44-source-han-serif-kr.conf (from rev 220481, adobe-source-han-serif-fonts/trunk/44-source-han-serif-kr.conf)
===================================================================
--- community-any/44-source-han-serif-kr.conf (rev 0)
+++ community-any/44-source-han-serif-kr.conf 2017-04-04 15:12:42 UTC (rev 220482)
@@ -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>
Copied: adobe-source-han-serif-fonts/repos/community-any/44-source-han-serif-otc.conf (from rev 220481, adobe-source-han-serif-fonts/trunk/44-source-han-serif-otc.conf)
===================================================================
--- community-any/44-source-han-serif-otc.conf (rev 0)
+++ community-any/44-source-han-serif-otc.conf 2017-04-04 15:12:42 UTC (rev 220482)
@@ -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>
Copied: adobe-source-han-serif-fonts/repos/community-any/44-source-han-serif-tw.conf (from rev 220481, adobe-source-han-serif-fonts/trunk/44-source-han-serif-tw.conf)
===================================================================
--- community-any/44-source-han-serif-tw.conf (rev 0)
+++ community-any/44-source-han-serif-tw.conf 2017-04-04 15:12:42 UTC (rev 220482)
@@ -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>
Copied: adobe-source-han-serif-fonts/repos/community-any/PKGBUILD (from rev 220481, adobe-source-han-serif-fonts/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2017-04-04 15:12:42 UTC (rev 220482)
@@ -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.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/fonts.install (from rev 220481, adobe-source-han-serif-fonts/trunk/fonts.install)
===================================================================
--- community-any/fonts.install (rev 0)
+++ community-any/fonts.install 2017-04-04 15:12:42 UTC (rev 220482)
@@ -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