summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5e0db7e779e4ba046f223dd43ddf553d341524f1 (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
# Maintainer: ebiadsu <ebiadsu@posteo.de>

pkgname=ttf-advent-pro
pkgver=20131203
# fc-query -f '%{fontversion[0]}\n' ./AdventPro-*.ttf
pkgrel=1
pkgdesc="Google's Advent Pro font"
arch=(any)
license=(custom:OFL)
url='https://fonts.google.com/specimen/Advent+Pro'
provides=(google-crosextra-carlito-fonts)
source=("$pkgname-$pkgver.zip::https://fonts.google.com/download?family=Advent%20Pro"
        "99-google-advent-pro.conf")
sha256sums=('54c921aa6490090439c37608a9d8b97439a3fb7bbb3a7ec708c6d5448dfb9ad4'
            'c926c45dcc2f46a93ef9fb7f27143744d5bb7ae71c23b2584cd5fc09850b1a56')

package() {
  # install fonts
  install -Dt "$pkgdir/usr/share/fonts/${pkgname#ttf-}" -m644 *.ttf

  # install font config
  install -Dt "$pkgdir/etc/fonts/conf.avail" -m644 99-google-advent-pro.conf
  mkdir "$pkgdir/etc/fonts/conf.d"
  ln -srt "$pkgdir/etc/fonts/conf.d" "$pkgdir"/etc/fonts/conf.avail/99-google-advent-pro.conf

  # install license
  cp OFL.txt LICENSE
  install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE
}