[arch-commits] Commit in adobe-source-han-sans-fonts/repos (8 files)
Jan Steffens
heftig at archlinux.org
Sun Mar 28 17:43:06 UTC 2021
Date: Sunday, March 28, 2021 @ 17:43:06
Author: heftig
Revision: 907074
archrelease: copy trunk to community-testing-any
Added:
adobe-source-han-sans-fonts/repos/community-testing-any/
adobe-source-han-sans-fonts/repos/community-testing-any/44-source-han-sans-cn.conf
(from rev 907072, adobe-source-han-sans-fonts/trunk/44-source-han-sans-cn.conf)
adobe-source-han-sans-fonts/repos/community-testing-any/44-source-han-sans-hk.conf
(from rev 907072, adobe-source-han-sans-fonts/trunk/44-source-han-sans-hk.conf)
adobe-source-han-sans-fonts/repos/community-testing-any/44-source-han-sans-jp.conf
(from rev 907072, adobe-source-han-sans-fonts/trunk/44-source-han-sans-jp.conf)
adobe-source-han-sans-fonts/repos/community-testing-any/44-source-han-sans-kr.conf
(from rev 907072, adobe-source-han-sans-fonts/trunk/44-source-han-sans-kr.conf)
adobe-source-han-sans-fonts/repos/community-testing-any/44-source-han-sans-otc.conf
(from rev 907072, adobe-source-han-sans-fonts/trunk/44-source-han-sans-otc.conf)
adobe-source-han-sans-fonts/repos/community-testing-any/44-source-han-sans-tw.conf
(from rev 907072, adobe-source-han-sans-fonts/trunk/44-source-han-sans-tw.conf)
adobe-source-han-sans-fonts/repos/community-testing-any/PKGBUILD
(from rev 907072, adobe-source-han-sans-fonts/trunk/PKGBUILD)
-----------------------------+
44-source-han-sans-cn.conf | 18 ++++
44-source-han-sans-hk.conf | 18 ++++
44-source-han-sans-jp.conf | 18 ++++
44-source-han-sans-kr.conf | 18 ++++
44-source-han-sans-otc.conf | 50 +++++++++++++
44-source-han-sans-tw.conf | 18 ++++
PKGBUILD | 161 ++++++++++++++++++++++++++++++++++++++++++
7 files changed, 301 insertions(+)
Copied: adobe-source-han-sans-fonts/repos/community-testing-any/44-source-han-sans-cn.conf (from rev 907072, adobe-source-han-sans-fonts/trunk/44-source-han-sans-cn.conf)
===================================================================
--- community-testing-any/44-source-han-sans-cn.conf (rev 0)
+++ community-testing-any/44-source-han-sans-cn.conf 2021-03-28 17:43:06 UTC (rev 907074)
@@ -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>
Copied: adobe-source-han-sans-fonts/repos/community-testing-any/44-source-han-sans-hk.conf (from rev 907072, adobe-source-han-sans-fonts/trunk/44-source-han-sans-hk.conf)
===================================================================
--- community-testing-any/44-source-han-sans-hk.conf (rev 0)
+++ community-testing-any/44-source-han-sans-hk.conf 2021-03-28 17:43:06 UTC (rev 907074)
@@ -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>
Copied: adobe-source-han-sans-fonts/repos/community-testing-any/44-source-han-sans-jp.conf (from rev 907072, adobe-source-han-sans-fonts/trunk/44-source-han-sans-jp.conf)
===================================================================
--- community-testing-any/44-source-han-sans-jp.conf (rev 0)
+++ community-testing-any/44-source-han-sans-jp.conf 2021-03-28 17:43:06 UTC (rev 907074)
@@ -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>
Copied: adobe-source-han-sans-fonts/repos/community-testing-any/44-source-han-sans-kr.conf (from rev 907072, adobe-source-han-sans-fonts/trunk/44-source-han-sans-kr.conf)
===================================================================
--- community-testing-any/44-source-han-sans-kr.conf (rev 0)
+++ community-testing-any/44-source-han-sans-kr.conf 2021-03-28 17:43:06 UTC (rev 907074)
@@ -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>
Copied: adobe-source-han-sans-fonts/repos/community-testing-any/44-source-han-sans-otc.conf (from rev 907072, adobe-source-han-sans-fonts/trunk/44-source-han-sans-otc.conf)
===================================================================
--- community-testing-any/44-source-han-sans-otc.conf (rev 0)
+++ community-testing-any/44-source-han-sans-otc.conf 2021-03-28 17:43:06 UTC (rev 907074)
@@ -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>
Copied: adobe-source-han-sans-fonts/repos/community-testing-any/44-source-han-sans-tw.conf (from rev 907072, adobe-source-han-sans-fonts/trunk/44-source-han-sans-tw.conf)
===================================================================
--- community-testing-any/44-source-han-sans-tw.conf (rev 0)
+++ community-testing-any/44-source-han-sans-tw.conf 2021-03-28 17:43:06 UTC (rev 907074)
@@ -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>
Copied: adobe-source-han-sans-fonts/repos/community-testing-any/PKGBUILD (from rev 907072, adobe-source-han-sans-fonts/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2021-03-28 17:43:06 UTC (rev 907074)
@@ -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=2
+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/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-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