blob: e17fcff4eb33c3bec8c7c5aba2a0162cdc6898f1 (
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
|
#! /bin/bash
pkgname="ttf-google-fonts"
pkgdesc="All fonts available in Google products"
url="https://github.com/google/fonts"
license=("Apache" "custom:SIL Open Font License 1.1" "custom:Ubuntu Font License 1.0")
pkgver=2019.09
pkgrel=1
arch=("any")
source=(git+"${url}".git)
sha512sums=("SKIP")
provides=("${pkgname}")
conflicts=("${provides}")
makedepends=("git")
depends=(
"fontconfig"
"noto-fonts-emoji"
"xorg-fonts-encodings"
"xorg-mkfontdir"
"xorg-mkfontscale")
pkgver () {
cd "fonts"
git log -1 --format="%cd" --date="short" | sed 's|-|.|g' | cut --delimiter='.' --fields=1,2
}
build () {
cd "${srcdir}/fonts"
find -maxdepth 1 -type f -delete
rm --recursive --force .[!.]*
rm --recursive "./ofl/adobeblank"
}
package () {
FontsDir="${pkgdir}/usr/share/fonts"
install --directory "${FontsDir}"
mv "${srcdir}/fonts" "${FontsDir}/google"
}
|