summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 86f83b083837305c2af0c47930c4a4697ddb3670 (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: luxcem <a@luxcem.fr>
# Contributor: David Pflug <david@pflug.email>
pkgname=ttf-bitstream-charter
pkgver=1.0
pkgrel=5
_conffile=82-charter.conf
pkgdesc="A serif typeface designed by Matthew Carter for low resolution devices. Provides OTF, TTF and fontconfig configuration."
arch=("any")
depends=("fontconfig")
conflicts=("otf-bitstream-charter")
url="https://practicaltypography.com/charter.html"
license=("custom")
source=("https://practicaltypography.com/fonts/Charter%20200512.zip" "${_conffile}")
sha256sums=('39d1615e8b9c71f6e339c4d66f9cd1c6c5e85a63e201cb880f7691fa2d26d3a3'
            '0de8093ecf7053865596d39fd1059f049abec480cf7488de366f1db6dc637cc8')

package() {
  install -d "${pkgdir}"/usr/share/fonts/TTF
  install -d "${pkgdir}"/usr/share/fonts/OTF
  install -Dm644 "${srcdir}/Charter/Charter/OpenType TT/"*.ttf "${pkgdir}"/usr/share/fonts/TTF
  install -Dm644 "${srcdir}"/Charter/Charter/OpenType/*.otf "${pkgdir}"/usr/share/fonts/OTF
  install -Dm644 "${srcdir}/Charter/Charter license.txt" "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE

  # Install fontconfig file
  install -d "$pkgdir"/etc/fonts/conf.avail
  install -Dm644 "$srcdir"/${_conffile} -t "$pkgdir"/etc/fonts/conf.avail/
  install -d "$pkgdir"/etc/fonts/conf.d
  ln -rs "$pkgdir"/etc/fonts/conf.avail/${_conffile} "$pkgdir"/etc/fonts/conf.d
}