summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2ebc1b9fda5407352b6f756ccabcddc8dc3e9acb (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: tjbp (archlinux@tjbp.net)

pkgname='otf-openbaskerville'
pkgver='0.1.0'
pkgrel='6'
pkgdesc="An open source implementation of Fry's Baskerville, a Baskerville derivative by Isaac Moore"
arch=('any')
url="http://klepas.org/openbaskerville/"
license=('custom:OFL')
makedepends=('ufo2otf' 'eot-utilities')
install='otf.install'
source=("https://github.com/klepas/open-baskerville/archive/v0.0.0.zip")
sha256sums=('557dced5e5e0e263d4d9fa311619d86a19bad6275c685053dbf8192e8e90f6ef')

build() {
    cd ${srcdir}/open-baskerville-0.0.0

    sed -i "s/Large Frys/Open Baskerville/" OpenBaskerville.ufo/fontinfo.plist

    ufo2otf OpenBaskerville.ufo
}

package() {
    # Font installation
    install -Dm0644 "$srcdir/open-baskerville-0.0.0/OpenBaskerville.otf" "$pkgdir/usr/share/fonts/OTF/OpenBaskerville.otf"

    # Licence installation
    install -Dm0644 "$srcdir/open-baskerville-0.0.0/COPYING-OFL" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}