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

pkgname=otf-iwona
pkgver=0.995
pkgrel=1
pkgdesc="Open Type Iwona font"
arch=('any')
url="http://jmn.pl/kurier-i-iwona/"
license=('CUSTOM')
depends=('fontconfig' 'xorg-font-utils')
source=("$pkgname-$pkgver.zip::http://jmn.pl/pliki/Iwona-otf-0_995.zip")
sha256sums=('2740d5c2a5efd29fc01eaa9ba29b4bd06295c5305092f9c1cfd4366e27502caa')

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/otf"
    find . -maxdepth 1 -name '*.otf' -execdir install -Dm644 {} "$pkgdir"/usr/share/fonts/OTF/{} \;
}