blob: e2ef9c9bec438c5fb3962303638b196dc70b7b39 (
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
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
pkgname=picosvg
pkgver=0.22.1
pkgrel=3
pkgdesc='CLI tool to simplify SVG files, intended for use as part of a font build'
arch=(any)
url="https://github.com/googlefonts/$pkgname"
license=(Apache-2.0)
_pydeps=(lxml
skia-pathops)
depends=(absl-py
python
"${_pydeps[@]/#/python-}")
makedepends=(python-{build,installer,wheel}
python-setuptools-scm)
checkdepends=(python-pytest)
_archive="$pkgname-$pkgver"
source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$_archive.tar.gz")
sha256sums=('d9d7d9ecbdef53cab1493f283545163b32844dd8d2ed9e1471671c7ce817618d')
build() {
cd "$_archive"
python -m build -wn
}
check() {
cd "$_archive"
export PYTHONPATH=src
pytest tests
}
package() {
cd "$_archive"
python -m installer -d "$pkgdir" dist/*.whl
}
|