blob: b30455c684468aaf34942d70c2b157bb6bfc5f2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
# Maintainer: Kai Ninomiya <kainino1@gmail.com>
# Submitter: Veeti Paananen <veeti.paananen@rojekti.fi>
# Contributor: Sebastian Stammler <stammler.s@gmail.com>
# Contributor: Sarkasper <echo a2FzcGVyLm1lbnRlbkBnbXguY29tCg== | base64 -d>
# Contributor: Daniel Micay <danielmicay@gmail.com>
# Contributor: Michalis Georgiou <mechmg93@gmail.comr>
# Contributor: Alexander De Sousa <archaur.xandy21@spamgourmet.com>
# This package is a version of ttf-google-fonts-git that makes opinionated
# exclusions for certain fonts in the Google repository that are outdated or
# otherwise unsuitable (bugs, etc.) Their individual packages are included as
# dependencies instead. A list of excluded fonts is below.
# Cantarell: Google ships an outdated version compared to the cantarell-fonts
# package.
# Droid: the ttf-droid package includes more variants.
# Fira Sans & Fira Mono: Google ships an outdated and buggy version.
# https://github.com/google/fonts/issues/10
# Inconsolata: Google ships a modified version.
pkgname=ttf-google-fonts-opinionated-git
pkgver=20160311
pkgrel=1
pkgdesc="TrueType fonts from Google Fonts, but with updated versions of some fonts"
arch=('any')
url="https://github.com/google/fonts"
license=('various')
depends=('fontconfig'
'xorg-fonts-encodings'
'xorg-mkfontdir'
'xorg-mkfontscale'
'cantarell-fonts'
'ttf-droid'
'ttf-fira-sans'
'ttf-fira-mono'
'ttf-inconsolata')
makedepends=('git')
conflicts=('adobe-source-code-pro-fonts'
'adobe-source-sans-pro-fonts'
'adobe-source-serif-pro-fonts'
'googlefontdirectory'
'jsmath-fonts'
'lohit-fonts'
'oldstand-font'
'openarch_fonts'
'otf-bitter'
'otf-goudy'
'ttf-andika'
'ttf-anonymous-pro'
'ttf-cardo'
'ttf-chromeos-fonts'
'ttf-comfortaa'
'ttf-croscore'
'ttf-google-fonts-git'
'ttf-google-fonts-hg'
'ttf-google-webfonts'
'ttf-google-webfonts-git'
'ttf-google-webfonts-hg'
'ttf-kimberly_geswein_print'
'ttf-lato'
'ttf-lekton'
'ttf-medievalsharp'
'ttf-nova'
'ttf-noto'
'ttf-oldstandard'
'ttf-opensans'
'ttf-oxygen'
'ttf-oxygen-git'
'ttf-ptsans'
'ttf-pt-mono'
'ttf-pt-sans'
'ttf-roboto'
'ttf-roboto-mono'
'ttf-sil-fonts'
'ttf-sortsmillgoudy'
'ttf-source-code-pro'
'ttf-source-sans-pro'
'ttf-ubuntu-font-family'
'ttf-vollkorn'
'ttf-lato')
provides=("${conflicts[@]}" 'ttf-font')
source=("git+https://github.com/google/fonts.git")
md5sums=('SKIP')
install=ttf-google-fonts-opinionated-git.install
# xz compression is very slow for a large font package. Using gzip is much
# faster with only around ~50 megabytes in added size.
PKGEXT='.pkg.tar.gz'
# git variables
_gitname="fonts"
pkgver() {
cd "$srcdir/$_gitname"
git log -1 --format="%cd" --date=short | sed 's|-||g'
}
package() {
cd "$srcdir"
install -dm755 "$pkgdir/usr/share/fonts/TTF"
find . -type f -name \*.ttf -exec install -Dm644 '{}' \
"$pkgdir/usr/share/fonts/TTF" \;
# Remove excluded fonts.
find "${pkgdir}/usr/share/fonts/" -type f -name "Cantarell-*.ttf" -delete
find "${pkgdir}/usr/share/fonts/" -type f -name "Droid*.ttf" -delete
find "${pkgdir}/usr/share/fonts/" -type f -name "Fira*.ttf" -delete
find "${pkgdir}/usr/share/fonts/" -type f -name "Inconsolata-*.ttf" -delete
}
|