summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a1a85cadafdb91d0483537b6aea4a35238df5978 (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
38
39
40
41
42
43
# Maintainer: sansation <sansation.git@gmail.com>

# requires that you already have a full copy of this font

pkgname=otf-pragmatapro
pkgver=0.822
pkgrel=1
pkgdesc="PragmataPro by Fabrizio Schiavi"
arch=('any')
url="http://www.fsd.it/shop/fonts/pragmatapro/"
license=('http://www.fsd.it/fonts/eula.htm')
depends=('fontconfig' 'xorg-font-utils')
install=$pkgname.install
source=("LICENSE")
md5sums=('eb2608fd50ca421ecb9fc07de833a5ab')

package() {
  msg "You need a full copy of this font in order to install it"
  files=(
         "Pragmata Pro Bold.otf"
         "Pragmata Pro Italic.otf"
         "Pragmata Pro Regular.otf"
         "Pragmata Pro Bold Italic.otf"
         "Pragmata Pro Mono Bold.otf"
         "Pragmata Pro Mono Italic.otf"
         "Pragmata Pro Mono Regular.otf"
         "Pragmata Pro Mono Bold Italic.otf"
  )
  for i in "${files[@]}"
  do
    if [[ ! -f $i ]]; then
      error "${i} not found"
      return 1
    else
      msg "Found ${i}"
    fi
  done
  msg "Found all files, instaling..."

  install -d "${pkgdir}/usr/share/fonts/OTF/"
  install -m644 *.otf "${pkgdir}/usr/share/fonts/OTF/"
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname"
}