summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c2ebdbb6e174455f92955c49dafe23b9002c88b3 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# Maintainer: Andy Kluger <AndyKluger@gmail.com>
# Contributor: Markus Weimar <mail@markusweimar.de>
pkgname=ttf-iosevka-term-custom-git
pkgver=r1006.7d01557
pkgrel=1
pkgdesc='A slender monospace sans-serif and slab-serif typeface inspired by Pragmata Pro, M+ and PF DIN Mono.'
arch=('any')
url='https://be5invis.github.io/Iosevka/'
license=('custom:OFL')
makedepends=('git' 'nodejs' 'npm' 'ttfautohint' 'otfcc')
depends=('fontconfig' 'xorg-font-utils')
conflicts=(ttf-iosevka-term{,-hooky,-zshaped,-slab})
provides=('ttf-iosevka-term')
source=("git+https://github.com/be5invis/Iosevka")
md5sums=('SKIP')

pkgver() {
  cd "Iosevka"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  : ${IOSEVKA_DESIGN='v-l-tailed v-i-hooky v-g-opendoublestorey v-m-shortleg v-zero-dotted'}
  [[ $IOSEVKA_DESIGN = *term* ]] && design="$IOSEVKA_DESIGN" || design="term $IOSEVKA_DESIGN"
  cd Iosevka
  npm install
  make custom-config design="$design"
  make custom
}

package() {
  install -d "${pkgdir}/usr/share/fonts/TTF"
  install -m644 Iosevka/dist/*/ttf/*.ttf "${pkgdir}/usr/share/fonts/TTF/"
  install -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 Iosevka/LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/"
  for font in "${pkgdir}"/usr/share/fonts/TTF/*; do
    mv "$font" "${font%.*}-term.${font##*.}"
  done
}

# general shape:
#   sans : Sans serif (default).
#   slab : Slab serif. When present, the family of your font would be Iosevka Slab.
# ligations and spacing:
#   term : Disable ligations. When this style is present, the font built will not contain ligatures, and its family name will be set to “Iosevka Term”. In case of your OS or editor cannot handle ligatures correctly, you can disable ligations with it.
#   type : Make some symbols, like arrows (→) and mathematical operators full-width.
#   stress-fw : When included, full-width characters varying form U+FF00 to U+FFFF will be boxed to present a clear distinguish between ASCII and Full-width. The family name will be set to “Iosevka StFW”.
# ss## and cv## feature tags, including:
#   ss01~ss10 : Predefined stylistic sets based on other Monospace fonts.
#   cv01~cv45 : Standalone character variants.
# ligation sets, include:
#   ligset-haskell: Default ligation set would be assigned to Haskell.
#   ligset-idris: Default ligation set would be assigned to Idris.
#   ligset-coq: Default ligation set would be assigned to Coq.
#   ligset-elm: Default ligation set would be assigned to Elm.
#   ligset-ml: Default ligation set would be assigned to ML.
#   ligset-fs: Default ligation set would be assigned to F#.
#   ligset-fstar: Default ligation set would be assigned to F*.
#   ligset-swift: Default ligation set would be assigned to Swift.
#   ligset-purescript: Default ligation set would be assigned to PureScript.
# letter l:
#   v-l-hooky : Hooky l.
#   v-l-zshaped : Z-shaped l.
#   v-l-serifed : Serifed l (default for upright and oblique).
#   v-l-italic : Italic l (default for italic).
#   v-l-tailed : l with a curved tail.
#   v-l-hookybottom : l with a straight tail.
# letter i:
#   v-i-hooky : Hooky i.
#   v-i-zshaped : Z-shaped i.
#   v-i-serifed : Serifed i (default for upright and oblique).
#   v-i-italic : Italic i (default for italic).
# letter a:
#   v-a-doublestorey : Double-storey a (default for upright and oblique).
#   v-a-singlestorey : Single-storey a (default for italic).
# letter g:
#   v-g-doublestorey : Double-storey g (default).
#   v-g-singlestorey : Single-storey g.
#   v-g-opendoublestorey : Open Single-storey g.
# letter m:
#   v-m-longleg : m with long middle leg (default).
#   v-m-shortleg : m with shorter middle leg.
# letter t:
#   v-t-standard : Standard t shape (default).
#   v-t-cross : Futura-like t shape.
# letter Q:
#   v-q-taily : Q with a curly tail (default).
#   v-q-straight : Q with a straight tail in the old versions.
# zero (0):
#   v-zero-slashed : Slashed Zero 0 (default).
#   v-zero-dotted : Dotted Zero 0.
#   v-zero-unslashed : O-like 0.
# ASCII tilde (~), asterisk (*), paragaraph(¶), underscore (_) and ASCII Caret (^):
#   v-tilde-high : Higher tilde ~.
#   v-tilde-low : Lower tilde ~ (default).
#   v-asterisk-high : Higher asterisk * (default).
#   v-asterisk-low : Lower asterisk *.
#   v-paragraph-high : Higher paragraph symbol ¶ (default).
#   v-paragraph-low : Lower paragraph symbol ¶.
#   v-caret-high : Higher circumflex ^ (default).
#   v-caret-low : Lower circumflex ^.
#   v-underscore-high : Higher underscore _ (default).
#   v-underscore-low : Lower underscore _.
# At (@):
#   v-at-long : The long, three-fold At symbol in Iosevka 1.7.x.
#   v-at-fourfold : The traditional, four-fold At symbol.
#   v-at-short : The shorter, Fira-like At symbol introduced in Iosevka 1.8.
# Eszet(ß)
#   v-eszet-traditional : Tratidional, Fraktur-like Eszet.
#   v-eszet-sulzbacher : A more modern, beta-like Eszet (default).
# curly brackets ({})
#   v-brace-straight : More straight braces.
#   v-brace-curly : More curly braces (default).
# dollar symbol ($):
#   v-dollar-open : Dollar symbol with open contour.
#   v-dollar-through : Dollar symbol with strike-through vertical bar (default).
# Number sign (#):
#   v-numbersign-upright : Number sign with vertical bars (default).
#   v-numbersign-slanted : Number sign with slanted bars.