Date: Tuesday, March 23, 2021 @ 21:30:42
  Author: mtorromeo
Revision: 901354

archrelease: copy trunk to community-testing-any

Added:
  ttf-ubuntu-font-family/repos/community-testing-any/
  ttf-ubuntu-font-family/repos/community-testing-any/81-ubuntu.conf
    (from rev 901353, ttf-ubuntu-font-family/trunk/81-ubuntu.conf)
  ttf-ubuntu-font-family/repos/community-testing-any/PKGBUILD
    (from rev 901353, ttf-ubuntu-font-family/trunk/PKGBUILD)

----------------+
 81-ubuntu.conf |   66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 PKGBUILD       |   22 ++++++++++++++++++
 2 files changed, 88 insertions(+)

Copied: ttf-ubuntu-font-family/repos/community-testing-any/81-ubuntu.conf (from 
rev 901353, ttf-ubuntu-font-family/trunk/81-ubuntu.conf)
===================================================================
--- community-testing-any/81-ubuntu.conf                                (rev 0)
+++ community-testing-any/81-ubuntu.conf        2021-03-23 21:30:42 UTC (rev 
901354)
@@ -0,0 +1,66 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+
+<!-- Fixes for Ubuntu family:
+     - 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>Ubuntu Light</string>
+       </test>
+       <edit name="family" mode="assign">
+               <string>Ubuntu</string>
+       </edit>
+       <edit name="style" mode="assign">
+               <string>Light</string>
+       </edit>
+</match>
+
+<match target="scan">
+       <test name="fullname" compare="eq">
+               <string>Ubuntu Light Italic</string>
+       </test>
+       <edit name="family" mode="assign">
+               <string>Ubuntu</string>
+       </edit>
+       <edit name="style" mode="assign">
+               <string>Light Italic</string>
+       </edit>
+</match>
+
+<match target="scan">
+       <test name="fullname" compare="eq">
+               <string>Ubuntu Medium</string>
+       </test>
+       <edit name="family" mode="assign">
+               <string>Ubuntu</string>
+       </edit>
+       <edit name="style" mode="assign">
+               <string>Medium</string>
+       </edit>
+       <edit name="weight" mode="assign">
+               <const>demibold</const>
+       </edit>
+</match>
+
+<match target="scan">
+       <test name="fullname" compare="eq">
+               <string>Ubuntu Medium Italic</string>
+       </test>
+       <edit name="family" mode="assign">
+               <string>Ubuntu</string>
+       </edit>
+       <edit name="style" mode="assign">
+               <string>Medium Italic</string>
+       </edit>
+       <edit name="weight" mode="assign">
+               <const>demibold</const>
+       </edit>
+</match>
+
+</fontconfig>

Copied: ttf-ubuntu-font-family/repos/community-testing-any/PKGBUILD (from rev 
901353, ttf-ubuntu-font-family/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD                              (rev 0)
+++ community-testing-any/PKGBUILD      2021-03-23 21:30:42 UTC (rev 901354)
@@ -0,0 +1,22 @@
+# Maintainer: Massimiliano Torromeo <[email protected]>
+
+pkgname=ttf-ubuntu-font-family
+pkgver=0.83
+pkgrel=7
+pkgdesc="Ubuntu font family"
+arch=('any')
+url="https://design.ubuntu.com/font/";
+license=('custom:Ubuntu Font Licence 1.0')
+source=(https://assets.ubuntu.com/v1/fad7939b-ubuntu-font-family-$pkgver.zip
+        81-ubuntu.conf)
+sha256sums=('456d7d42797febd0d7d4cf1b782a2e03680bb4a5ee43cc9d06bda172bac05b42'
+            '16e29b1b8d13edddb588e4470f6da4c15870a9a27dd25eb4553c2c575d6dc14e')
+
+package() {
+       cd ubuntu-font-family-$pkgver
+       install -dm755 "$pkgdir"/usr/share/fontconfig/conf.default
+       install -Dm644 -t "$pkgdir"/usr/share/fonts/ubuntu *.ttf
+       install -Dm644 LICENCE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENCE
+       install -Dm644 "$srcdir"/81-ubuntu.conf 
"$pkgdir"/usr/share/fontconfig/conf.avail/81-ubuntu.conf
+       ln -s ../conf.avail/81-ubuntu.conf 
"$pkgdir"/usr/share/fontconfig/conf.default/81-ubuntu.conf
+}

Reply via email to