blob: 415db5943f6c0537b12f5f26c52d91d371d743e4 (
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
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
pkgname=diffenator2
pkgver=0.4.2
pkgrel=1
pkgdesc='Compare two font families, descendent of fontdiffenator'
arch=(any)
url="https://github.com/googlefonts/$pkgname"
license=()
_pydeps=(blackrenderer # [skia]
fonttools
freetype-py
gflanguages
glyphsets
jinja
numpy # for blackrenderer[ska]
pillow
protobuf
selenium
skia # for blackrenderer[ska]
tqdm
uharfbuzz
pyahocorasick
unicodedata2
youseedee)
depends=(ninja
python
"${_pydeps[@]/#/python-}")
makedepends=(python-{build,installer,wheel}
python-poetry-{core,dynamic-versioning})
_archive="$pkgname-$pkgver"
source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$_archive.tar.gz")
sha256sums=('b6a17325b57c3650263461511d0586691c7dfde29cba00db266d6d00e6b866e1')
build() {
cd "$_archive"
python -m build -wn
}
package() {
cd "$_archive"
python -m installer -d "$pkgdir" dist/*.whl
}
|