[arch-commits] Commit in ttf-caladea/trunk (62-google-crosextra-caladea.conf PKGBUILD)

Jan Steffens heftig at archlinux.org
Thu Jul 11 16:18:19 UTC 2019


    Date: Thursday, July 11, 2019 @ 16:18:19
  Author: heftig
Revision: 357757

20130214-2: Add config, match ttf-carlito

Added:
  ttf-caladea/trunk/62-google-crosextra-caladea.conf
Modified:
  ttf-caladea/trunk/PKGBUILD

----------------------------------+
 62-google-crosextra-caladea.conf |   16 ++++++++++++++++
 PKGBUILD                         |   21 +++++++++++++--------
 2 files changed, 29 insertions(+), 8 deletions(-)

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-07-11 16:18:18 UTC (rev 357756)
+++ PKGBUILD	2019-07-11 16:18:19 UTC (rev 357757)
@@ -4,19 +4,24 @@
 
 pkgname=ttf-caladea
 pkgver=20130214
-pkgrel=1
+pkgrel=2
 pkgdesc="Google's Caladea font"
 arch=(any)
 license=(Apache)
-url='https://code.google.com/p/chromium/issues/detail?id=280557'
-depends=(fontconfig xorg-fonts-encodings xorg-font-utils)
-provides=(ttf-font)
-source=("https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-$pkgver.tar.gz")
-md5sums=('368f114c078f94214a308a74c7e991bc')
+url='https://code.google.com/p/chromium/issues/detail?id=168879'
+provides=(google-crosextra-caladea-fonts)
+source=("https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-$pkgver.tar.gz"
+        62-google-crosextra-caladea.conf)
+sha256sums=('c48d1c2fd613c9c06c959c34da7b8388059e2408d2bb19845dc3ed35f76e4d09'
+            'cd61569289d7a188636df05addd3a744808de38b3d492b3e87c7a060bce4a2e6')
 
 package() {
   cd crosextrafonts-$pkgver
 
-  install -d "$pkgdir"/usr/share/fonts/TTF/
-  install -m644 *.ttf "$pkgdir"/usr/share/fonts/TTF/
+  install -Dt "$pkgdir/usr/share/fonts/${pkgname#ttf-}" -m644 *.ttf
+
+  install -Dt "$pkgdir/etc/fonts/conf.avail" -m644 ../*.conf
+
+  mkdir "$pkgdir/etc/fonts/conf.d"
+  ln -srt "$pkgdir/etc/fonts/conf.d" "$pkgdir"/etc/fonts/conf.avail/*
 }


More information about the arch-commits mailing list