[arch-commits] Commit in ttf-carlito/trunk (3 files)

Andreas Radke andyrtr at archlinux.org
Thu Jul 11 11:58:35 UTC 2019


    Date: Thursday, July 11, 2019 @ 11:58:34
  Author: andyrtr
Revision: 357745

upgpkg: ttf-carlito 20130920-3

drop ttf-font provider; move to specifiv path, add font available configuration files

Added:
  ttf-carlito/trunk/30-0-google-crosextra-carlito-fontconfig.conf
  ttf-carlito/trunk/62-google-crosextra-carlito-fontconfig.conf
Modified:
  ttf-carlito/trunk/PKGBUILD

-----------------------------------------------+
 30-0-google-crosextra-carlito-fontconfig.conf |   17 +++++++++++++++++
 62-google-crosextra-carlito-fontconfig.conf   |   16 ++++++++++++++++
 PKGBUILD                                      |   22 ++++++++++++++++------
 3 files changed, 49 insertions(+), 6 deletions(-)

Added: 30-0-google-crosextra-carlito-fontconfig.conf
===================================================================
--- 30-0-google-crosextra-carlito-fontconfig.conf	                        (rev 0)
+++ 30-0-google-crosextra-carlito-fontconfig.conf	2019-07-11 11:58:34 UTC (rev 357745)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
+<fontconfig>
+         <!-- Microsoft -->
+        <alias binding="same">
+          <family>Calibri</family>
+            <accept>
+              <family>Carlito</family>
+            </accept>
+        </alias>
+        <alias binding="same">
+          <family>Carlito</family>
+            <default>
+              <family>Calibri</family>
+            </default>
+        </alias>
+</fontconfig>

Added: 62-google-crosextra-carlito-fontconfig.conf
===================================================================
--- 62-google-crosextra-carlito-fontconfig.conf	                        (rev 0)
+++ 62-google-crosextra-carlito-fontconfig.conf	2019-07-11 11:58:34 UTC (rev 357745)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
+<fontconfig>
+        <alias>
+          <family>sans-serif</family>
+            <prefer>
+              <family>Carlito</family>
+            </prefer>
+        </alias>
+        <alias>
+          <family>Carlito</family>
+            <default>
+              <family>sans-serif</family>
+            </default>
+        </alias>
+</fontconfig>

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-07-11 11:55:05 UTC (rev 357744)
+++ PKGBUILD	2019-07-11 11:58:34 UTC (rev 357745)
@@ -4,21 +4,31 @@
 
 pkgname=ttf-carlito
 pkgver=20130920
-pkgrel=2
+pkgrel=3
 pkgdesc='Googles Carlito font'
 arch=('any')
 license=('custom:OFL')
 url='https://code.google.com/p/chromium/issues/detail?id=280557'
 depends=('fontconfig' 'xorg-fonts-encodings' 'xorg-font-utils')
-provides=('ttf-font')
-source=("http://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-${pkgname#ttf-}-${pkgver}.tar.gz")
-sha256sums=('4bd12b6cbc321c1cf16da76e2c585c925ce956a08067ae6f6c64eff6ccfdaf5a')
+provides=('google-crosextra-carlito-fonts')
+source=("https://gsdview.appspot.com/chromeos-localmirror/distfiles/crosextrafonts-${pkgname#ttf-}-${pkgver}.tar.gz"
+        30-0-google-crosextra-carlito-fontconfig.conf
+        62-google-crosextra-carlito-fontconfig.conf)
+sha256sums=('4bd12b6cbc321c1cf16da76e2c585c925ce956a08067ae6f6c64eff6ccfdaf5a'
+            'e13cc8ac68125ade2a99a2672dd1e53956dca93e0aaa3df833cbbf4fd15dc791'
+            '31a74cd8044c8c8644f1555c06f406559f2e14334dd671a608145431a4299bd3')
 
 package() {
   cd "crosextrafonts-${pkgname#ttf-}-${pkgver}"
 
-  install -d "${pkgdir}/usr/share/fonts/TTF/"
-  install -m644 *.ttf "${pkgdir}/usr/share/fonts/TTF/"
+  install -d "${pkgdir}/usr/share/fonts/${pkgname}/"
+  install -m644 *.ttf "${pkgdir}/usr/share/fonts/${pkgname}/"
 
+  install -Dm644 ../30-0-google-crosextra-carlito-fontconfig.conf "$pkgdir/etc/fonts/conf.avail/30-0-google-crosextra-carlito-fontconfig.conf"
+  install -Dm644 ../62-google-crosextra-carlito-fontconfig.conf "$pkgdir/etc/fonts/conf.avail/62-google-crosextra-carlito-fontconfig.conf"
+
+  mkdir "$pkgdir/etc/fonts/conf.d"
+  ln -srt "$pkgdir/etc/fonts/conf.d" "$pkgdir"/etc/fonts/conf.avail/*
+
   install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }


More information about the arch-commits mailing list