archrelease: copy trunk to extra-x86_64
[arch-packages.git] / ttf-croscore / trunk / PKGBUILD
blob06dea62761e907477362690e2138915da39d27af
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
3 pkgname=ttf-croscore
4 pkgver=20220810
5 _commit=2725c70baa8b0176c7577093ba1fc6179aa79478
6 pkgrel=2
7 pkgdesc='Chrome OS core fonts'
8 arch=(any)
9 url='https://fonts.google.com/noto'
10 license=(custom:SIL)
11 provides=(ttf-font)
12 makedepends=(git python-fonttools)
13 source=(git+https://github.com/notofonts/noto-fonts#commit=$_commit)
14 sha256sums=('SKIP')
16 prepare() {
17 # Fix weight of Arimo-BoldItalic.ttf https://github.com/googlefonts/noto-fonts/issues/2350
18   cd noto-fonts/hinted/ttf/Arimo
19   ttx Arimo-BoldItalic.ttf
20   sed -e 's|usWeightClass value=\"400\"|usWeightClass value=\"700\"|' -i Arimo-BoldItalic.ttx
21   ttx -f Arimo-BoldItalic.ttx
24 package() {
25   cd noto-fonts
26   install -Dm644 hinted/ttf/{Arimo,Cousine,Tinos}/*.ttf -t "$pkgdir"/usr/share/fonts/croscore
27   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/ttf-croscore