archrelease: copy trunk to extra-x86_64
[arch-packages.git] / ttf-carlito / repos / extra-any / PKGBUILD
blob193d10fbb15b55471b5e56c318d68a9c4e861936
1 # Maintainer: AndyRTR <andyrtr@archlinux.org>
2 # Contributor: Kewl <xrjy@nygb.rh.bet(rot13)>
3 # Contributor: Justin Settle <jus10 at partlycloudy dot org>
5 pkgname=ttf-carlito
6 pkgver=20230509
7 _commit=3a810cab78ebd6e2e4eed42af9e8453c4f9b850a
8 pkgrel=1
9 pkgdesc="Google's Carlito font"
10 arch=(any)
11 license=(custom:OFL)
12 url='https://fonts.google.com/specimen/Carlito'
13 makedepends=('git')
14 provides=(google-crosextra-carlito-fonts)
15 source=(git+https://github.com/googlefonts/carlito#commit=$_commit
16         62-carlito.conf)
17 sha256sums=('SKIP'
18             '31a74cd8044c8c8644f1555c06f406559f2e14334dd671a608145431a4299bd3')
20 package() {
21   cd carlito
23   install -Dm644 fonts/ttf/*.ttf -t "$pkgdir/usr/share/fonts/${pkgname#ttf-}"
24   install -Dm644 "$srcdir"/62-carlito.conf -t "$pkgdir"/usr/share/fontconfig/conf.avail
26   install -d "$pkgdir"/usr/share/fontconfig/conf.default
27   ln -sr "$pkgdir"/usr/share/fontconfig/conf.avail/* "$pkgdir"/usr/share/fontconfig/conf.default/
29   install -Dm644 OFL.txt -T "$pkgdir/usr/share/licenses/$pkgname/LICENSE"