blob: b30d04f80c9346a147a545f112c5f4d43198c0b7 (
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
|
# Maintainer: taotieren <admin@taotieren.com>
pkgname=python-glyphslib-git
pkgver=6.1.0.r57.g416dcbf6
pkgrel=1
pkgdesc='A bridge from Glyphs source files (.glyphs) to UFOs'
url='https://github.com/googlefonts/glyphsLib'
license=('Apache-2.0')
arch=(any)
_pydeps=(fonttools
fs # for fonttools[ufo]
openstep-plist
ufolib2
unicodedata2) # for fonttools[unicode]
depends=(python
xmldiff
"${_pydeps[@]/#/python-}")
makedepends=(python-{build,installer,wheel}
python-defcon
python-setuptools-scm
git)
_pycheckdeps=(lxml # for fonttools[lxml]
pytest
ufo2ft
ufonormalizer)
checkdepends=("${_pycheckdeps[@]/#/python-}"
xmldiff)
optdepends=(python-defcon
python-ufonormalizer)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/^v//g;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare()
{
git -C "${srcdir}/${pkgname}" clean -dfx
}
build() {
cd "$pkgname"
python -m build -wn
}
check() {
cd "$pkgname"
PYTHONPATH=Lib pytest tests \
--deselect tests/builder/interpolation_test.py \
--deselect tests/builder/designspace_gen_test.py \
--deselect tests/builder/builder_test.py
}
package() {
cd "$pkgname"
python -m installer -d "$pkgdir" dist/*.whl
}
|