summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 203fcf03e9c0ade0c2197b1ef1906ffd5131ed04 (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
44
45
# Maintainer:
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Tuhana GAYRETLÄ° <tuhana at tuta dot io>

_fontname=jura
_pkgname="$_fontname-font"
pkgbase="$_pkgname"
pkgver=5.106
pkgrel=1
pkgdesc="Jura font"
url="https://github.com/ossobuffo/jura"
license=('OFL-1.1-no-RFN')
arch=('any')

_commit=f9df75d92c93324e74e5ec0df6d91c8ee4b84b5a

_pkgsrc="jura-$_commit"
_pkgext="tar.gz"
source=("$_fontname-$pkgver.$_pkgext::$url/archive/$_commit.$_pkgext")
sha256sums=('60ec536e7eadb9d1c86e6bc488c3364a3d63b39134fee15b9b987699ecf77b90')

pkgname=(
  ttf-jura
  otf-jura
  ttf-jura-variable
)

package_ttf-jura() {
  cd "$_pkgsrc"
  install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" OFL.txt COPYRIGHT.md
  install -Dm644 -t "$pkgdir/usr/share/fonts/jura" fonts/ttf/*.ttf
}

package_otf-jura() {
  cd "$_pkgsrc"
  install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" OFL.txt COPYRIGHT.md
  install -Dm644 -t "$pkgdir/usr/share/fonts/jura" fonts/otf/*.otf

}

package_ttf-jura-variable() {
  cd "$_pkgsrc"
  install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" OFL.txt COPYRIGHT.md
  install -Dm644 -t "$pkgdir/usr/share/fonts/jura" fonts/variable/*.ttf
}