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

Felix Yan fyan at archlinux.org
Thu Jul 17 08:40:16 UTC 2014


    Date: Thursday, July 17, 2014 @ 10:40:16
  Author: fyan
Revision: 115810

archrelease: copy trunk to community-any

Added:
  adobe-source-han-sans-fonts/repos/community-any/
  adobe-source-han-sans-fonts/repos/community-any/PKGBUILD
    (from rev 115809, adobe-source-han-sans-fonts/trunk/PKGBUILD)
  adobe-source-han-sans-fonts/repos/community-any/fonts.install
    (from rev 115809, adobe-source-han-sans-fonts/trunk/fonts.install)

---------------+
 PKGBUILD      |  123 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 fonts.install |   11 +++++
 2 files changed, 134 insertions(+)

Copied: adobe-source-han-sans-fonts/repos/community-any/PKGBUILD (from rev 115809, adobe-source-han-sans-fonts/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2014-07-17 08:40:16 UTC (rev 115810)
@@ -0,0 +1,123 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Contributor: Sascha Weaver <wzyboy at wzyboy.org>
+
+# This font family has several variants:
+#
+# * 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
+# * Monolingual version with only Japanese glyphs + Latin
+# * Monolingual version with only Korean glyphs + Latin
+# * Monolingual version with only Simplified Chinese glyphs + Latin
+# * Monolingual version with only Traditional Chinese glyphs + Latin
+
+_pkgbase=adobe-source-han-sans
+pkgbase=$_pkgbase-fonts
+pkgname=($_pkgbase-jp-fonts $_pkgbase-kr-fonts $_pkgbase-cn-fonts $_pkgbase-twhk-fonts $_pkgbase-otc-fonts)
+pkgver=1.000
+pkgrel=1
+pkgdesc='Adobe Source Han Sans - A set of Pan-CJK fonts designed to complement Source Sans Pro'
+arch=('any')
+url='https://github.com/adobe-fonts/source-han-sans'
+source=("http://sourceforge.net/projects/source-han-sans.adobe/files/SourceHanSansJP-$pkgver.zip"
+        "http://sourceforge.net/projects/source-han-sans.adobe/files/SourceHanSansKR-$pkgver.zip"
+        "http://sourceforge.net/projects/source-han-sans.adobe/files/SourceHanSansCN-$pkgver.zip"
+        "http://sourceforge.net/projects/source-han-sans.adobe/files/SourceHanSansTWHK-$pkgver.zip"
+        "http://sourceforge.net/projects/source-han-sans.adobe/files/SourceHanSansOTC-$pkgver.zip")
+noextract=(SourceHanSansJP-$pkgver.zip SourceHanSansKR-$pkgver.zip SourceHanSansCN-$pkgver.zip SourceHanSansTWHK-$pkgver.zip SourceHanSansOTC-$pkgver.zip)
+sha256sums=('c5930036660bea22ffceaa9e2df765776494800d330a59be7936ab3c763c4c82'
+            '8eed4ad092fcf640e44f73ba510e0ed1c1cabf79776f68d02820734bbba21cf8'
+            '88117aa8f8b4ab65d6f7a919a5e1b06d6c00f75b1abecccf120246536123754d'
+            '2371a726757a51322243b1ed7a9fde562621b0813b5e6d6443e06847ad7bbd20'
+            'd6eb107eaf7f7b7e6b775905e2f5b335c989c7b06a46fc7286d3e71c4ffde4d8')
+license=('Apache')
+depends=('fontconfig')
+makedepends=('unzip')
+install="fonts.install"
+
+_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
+)
+_twhk=(
+SourceHanSansTWHK-Bold.otf
+SourceHanSansTWHK-ExtraLight.otf
+SourceHanSansTWHK-Heavy.otf
+SourceHanSansTWHK-Light.otf
+SourceHanSansTWHK-Medium.otf
+SourceHanSansTWHK-Normal.otf
+SourceHanSansTWHK-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"
+
+    case "$1" in
+        $_pkgbase-jp-fonts)
+            fonts=(${_jp[@]})
+            unzip -j SourceHanSansJP-$pkgver.zip
+            pkgdesc="Adobe Source Han Sans - Japanese OpenType/CFF fonts";;
+        $_pkgbase-kr-fonts)
+            fonts=(${_kr[@]})
+            unzip -j SourceHanSansKR-$pkgver.zip
+            pkgdesc="Adobe Source Han Sans - Korean OpenType/CFF fonts";;
+        $_pkgbase-cn-fonts)
+            fonts=(${_cn[@]})
+            unzip -j SourceHanSansCN-$pkgver.zip
+            pkgdesc="Adobe Source Han Sans - Simplified Chinese OpenType/CFF fonts";;
+        $_pkgbase-twhk-fonts)
+            fonts=(${_twhk[@]})
+            unzip -j SourceHanSansTWHK-$pkgver.zip
+            pkgdesc="Adobe Source Han Sans - Traditional Chinese OpenType/CFF fonts";;
+        $_pkgbase-otc-fonts)
+            fonts=(${_otc[@]})
+            unzip -j SourceHanSansOTC-$pkgver.zip
+            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
+}
+
+for _pkgname in ${pkgname[@]}; do
+    eval "function package_$_pkgname() { _package $_pkgname; }"
+done

Copied: adobe-source-han-sans-fonts/repos/community-any/fonts.install (from rev 115809, adobe-source-han-sans-fonts/trunk/fonts.install)
===================================================================
--- community-any/fonts.install	                        (rev 0)
+++ community-any/fonts.install	2014-07-17 08:40:16 UTC (rev 115810)
@@ -0,0 +1,11 @@
+post_install() {
+  fc-cache -f
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+post_remove() {
+  post_install $1
+}




More information about the arch-commits mailing list