blob: 38dc72aba7cbe3549bd52da01f6d84f0c92a0a03 (
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
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Contributor: James Zhu <james.zhu.engineer@gmail.com>
_gitname=FiraCode
pkgname=otf-fira-code-git
pkgver=5.2.r54.g4e04092
pkgrel=1
pkgdesc="Monospaced font with programming ligatures"
arch=('any')
url="https://github.com/tonsky/$_gitname"
license=('OFL')
_py_deps=('compreffor'
'fontmake'
'idna'
'pillow'
'requests'
'urllib3')
makedepends=('gftools'
'git'
'sfnt2woff-zopfli'
'ttfautohint'
'woff2')
makedepends+=("${_py_deps[@]/#/python-}")
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd "$_gitname"
git describe --long --tags --abbrev=7 HEAD |
sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$_gitname"
./script/build
}
package() {
cd "$_gitname"
install -Dm644 -t "$pkgdir/usr/share/fonts/OTF/" distr/otf/$_gitname-*.otf
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
}
|