diff options
author | taotieren | 2023-01-30 22:27:33 +0800 |
---|---|---|
committer | taotieren | 2023-01-30 22:27:33 +0800 |
commit | 2cb62a20c35826175ca75843e6705a2172b61fca (patch) | |
tree | 4b516e392ace56afa4449bf3b719ab2990bcf405 /PKGBUILD | |
download | aur-2cb62a20c35826175ca75843e6705a2172b61fca.tar.gz |
Add python-skia-pathops-git
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1569d20017bf --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: taotieren <admin@taotieren.com> + +pkgname=python-skia-pathops-git +pkgver=0.7.4.r4.g2e7c322 +pkgrel=1 +pkgdesc='Python bindings for the Skia librarys Path Ops' +url='https://github.com/fonttools/skia-pathops' +license=('BSD') +arch=(any) +depends=(cython + python) +checkdepends=(python-pytest + python-coverage + python-pytest-xdist + python-pytest-randomly) +makedepends=(python-{build,installer} + python-setuptools-scm + python-wheel + git) +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' +} + +build() { + cd "$pkgname" + python -m build -wn +} + +check() { + cd "$pkgname" + PYTHONPATH=Lib pytest tests +} + +package() { + cd "$pkgname" + python -m installer -d "$pkgdir" dist/*.whl +} + |