blob: 5c17b7ef78f54a9afd6a963d792f369ddb7b6aa8 (
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.3
pkgrel=1
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=('4395efc32a00e89454395fcbbe3ee2731e9cee7aa3be0f5ae9f96418d0696778')
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
}
|