summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5628f3d7f3176ae62cf98e74b36065dfdc8226df (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
30
31
32
33
34
35
36
37
# Maintainer: bohoomil <@zoho.com>

pkgname=ttf-courier-prime-ib
pkgver=1.203
pkgrel=10
depends=('fontconfig')
pkgdesc="A free, improved, classical monospaced typeface."
url="http://quoteunquoteapps.com/courierprime/"
arch=('any')
groups=('infinality-bundle-fonts')
conflicts=('ttf-courier-prime')
replaces=('ttf-courier-prime')
provides=('t1-ibm-courier-ib')
license=('custom:OFL')
source=('http://quoteunquoteapps.com/downloads/courier-prime.zip'
        45-courier-prime.conf
        90-tt-courier-prime.conf)
sha1sums=('05e3c5fb937d44f8b2dd9b5705df98812ed73711'
          '718837e1ac40010d446d9c4e8817d221abc3041e'
          '5b774e915c204364eb9d1bf580264de991c084a4')

package() {
  install -m755 -d "${pkgdir}"/usr/share/fonts/"${pkgname}"
  find . -type f -name \*.ttf -exec install -Dm644 '{}' \
    "${pkgdir}"/usr/share/fonts/"${pkgname}" \;

  cd "${srcdir}"
  install -D -m644 45-courier-prime.conf \
    "${pkgdir}"/etc/fonts/conf.avail/45-courier-prime.conf
  install -D -m644 90-tt-courier-prime.conf \
    "${pkgdir}"/etc/fonts/conf.avail/90-tt-courier-prime.conf

  install -m755 -d "${pkgdir}"/etc/fonts/conf.d
  cd "${pkgdir}"/etc/fonts/conf.d
  ln -s ../conf.avail/45-courier-prime.conf .
  ln -s ../conf.avail/90-tt-courier-prime.conf .
}