archrelease: copy trunk to extra-x86_64
[arch-packages.git] / gsfonts / repos / extra-any / PKGBUILD
blobb3f4da21bbb3e0845b685d3426173188328f03db
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Gaetan Bisson <bisson@archlinux.org>
3 # Contributor: Firmicus <francois.archlinux.org>
4 # Contributor: dorphell <dorphell@archlinux.org>
6 _name=urw-base35-fonts
7 pkgname=gsfonts
8 pkgver=20200910
9 pkgrel=3
10 pkgdesc="(URW)++ base 35 font set"
11 url="https://github.com/ArtifexSoftware/urw-base35-fonts"
12 arch=(any)
13 license=(AGPL3)
14 source=($url/archive/$pkgver/$_name-$pkgver.tar.gz)
15 sha512sums=('71fb27baadf5abc4ff624cdede02038681acd5fffdc728a5b2e7808713b80cb2f2174f90a1862e69d390c4434c49d5167ab095100032fa3ba80b586eb8ae51d1')
16 b2sums=('77305946e6ab6e576cca7b62da731709bf4acaeb7181f89aef032f922acfaad59735a651d73ff8793c2cf32a23f45efaf5322568892023d4eae9b2278f681890')
18 package() {
19   local _config _config_path
20   cd $_name-$pkgver
22   install -vDm 644 fonts/*.otf -t "$pkgdir/usr/share/fonts/$pkgname/"
23   install -vDm 644 appstream/*.xml -t "$pkgdir/usr/share/metainfo"
25   install -vdm 755 "$pkgdir/usr/share/fontconfig/conf.default/"
26   for _config in fontconfig/*.conf; do
27     _config_path="$pkgdir/usr/share/fontconfig/conf.avail/69-${_config##*/}"
28     install -vDm 644 "$_config" "$_config_path"
29     ln -srt "$pkgdir/usr/share/fontconfig/conf.default/" "$_config_path"
30   done