blob: 5866275f1ba50ca0af5366aa277d6bb63cdbe8ff (
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
|
# Maintainer: Lennard Hofmann <lennard dot hofmann at web dot de>
pkgname=('otf-yrsa' 'ttf-yrsa')
pkgbase=yrsa-font
pkgver=2.005
pkgrel=1
pkgdesc='Serif font for continuous reading on the web'
arch=(any)
url="https://github.com/rosettatype/yrsa-rasa"
license=('OFL')
groups=('yrsa-rasa-fonts')
source=("$pkgbase-$pkgver.zip::$url/releases/download/v$pkgver/Yrsa-fonts-v$pkgver.zip")
sha256sums=('2af2a9a1d2473cbd9e5b40b460c8fb8dc204efd0c11b5a3562f1ef3c04363201')
_package() {
cd "Yrsa-fonts-v$pkgver"
install -Dm644 OFL.txt "$pkgdir/usr/share/licenses/$pkgname/OFL.txt"
# txt file is actually a Markdown file:
install -Dm644 README.txt "$pkgdir/usr/share/doc/$pkgname/README.md"
}
package_otf-yrsa() {
conflicts=('ttf-yrsa')
_package
install -Dm644 -t "$pkgdir/usr/share/fonts/${pkgbase%-font}" otf/*.otf
}
package_ttf-yrsa() {
conflicts=('otf-yrsa')
_package
install -Dm644 -t "$pkgdir/usr/share/fonts/${pkgbase%-font}" ttf/*.ttf
}
|