summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bc6e0cc35674c0484a3128e33534eb6ccfa4b18c (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
# Maintainer:  Caleb Maclennan <caleb@alerque.com>

pkgname=otf-bravura
pkgver=1.18
pkgrel=1
pkgdesc="an SMuFL compliant music font designed by Daniel Spreadbury at Steinberg"
arch=('any')
url="http://www.smufl.org/fonts/"
license=('OFL')
depends=('fontconfig' 'xorg-font-utils')
source=("http://www.smufl.org/files/bravura-${pkgver}.zip")
sha256sums=('abf55d5e01db584c9a00a7395bfc64b667e1b35240a7d188e8eb393a8fbb51b6')

post_install() {
  echo -n "Updating font cache... "
  fc-cache -s >/dev/null
  mkfontscale /usr/share/fonts/OTF
  mkfontdir /usr/share/fonts/OTF
  echo "done."
}

post_upgrade() {
  post_install $1
}

post_remove() {
  post_install $1
}

package() {
    cd "${srcdir}"
    find . -name '*.otf' -execdir install -Dm644 {} $pkgdir/usr/share/fonts/OTF/{} \;
    install -Dm644 "OFL.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}