blob: a0b46882ee43bf3d9c40f337cde9d901e7ec6752 (
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
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
pkgname=python-fontmake-git
pkgver=3.7.1.r13.gdae37e6
pkgrel=1
pkgdesc='Compile fonts from sources (UFO, Glyphs) to binary (OpenType, TrueType)'
url='https://github.com/googlefonts/fontmake'
license=(MIT)
arch=(x86_64)
_pydeps=(attrs
fontmath
fonttools
fs # for fonttools[ufo]
glyphslib
lxml # for fonttools[lxml] and defcon[lxml]
ttfautohint-py
ufo2ft
ufolib2
unicodedata2) # for fonttools[unicode]
depends=(python
"${_pydeps[@]/#/python-}")
makedepends=(git
python-{build,installer,wheel}
python-setuptools-scm)
checkdepends=(python-compreffor
python-defcon
python-mutatormath
python-pytest
python-skia-pathops)
optdepends=(python-mutatormath
python-skia-pathops)
provides=("${pkgname%-git}=$pkgver")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long --tags --abbrev=7 HEAD |
sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$pkgname"
python -m build -wn
}
check() {
cd "$pkgname"
export PYTHONPATH="$PWD/build/lib"
pytest tests
}
package() {
cd "$pkgname"
python -m installer -d "$pkgdir" dist/*.whl
install -Dm755 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
}
|