backports/py3-svgpath: build using gpep517
This commit is contained in:
parent
8d51c28255
commit
bea9c52c5a
1 changed files with 8 additions and 4 deletions
|
@ -1,8 +1,9 @@
|
||||||
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
||||||
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
||||||
|
maintainer="Celeste <cielesti@protonmail.com>"
|
||||||
pkgname=py3-svgpath
|
pkgname=py3-svgpath
|
||||||
pkgver=6.3
|
pkgver=6.3
|
||||||
pkgrel=2
|
pkgrel=3
|
||||||
pkgdesc="SVG path and object parser"
|
pkgdesc="SVG path and object parser"
|
||||||
url="https://github.com/regebro/svg.path"
|
url="https://github.com/regebro/svg.path"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
|
@ -12,7 +13,8 @@ checkdepends="py3-pytest py3-pillow"
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
source="$pkgname-$pkgver.tar.gz::https://github.com/regebro/svg.path/archive/refs/tags/$pkgver.tar.gz
|
source="$pkgname-$pkgver.tar.gz::https://github.com/regebro/svg.path/archive/refs/tags/$pkgver.tar.gz
|
||||||
105_use-better-than-nothing-font.patch
|
105_use-better-than-nothing-font.patch
|
||||||
no-install-tests.patch"
|
no-install-tests.patch
|
||||||
|
"
|
||||||
builddir="$srcdir/svg.path-$pkgver"
|
builddir="$srcdir/svg.path-$pkgver"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
@ -22,7 +24,9 @@ build() {
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
PYTHONPATH=build/lib pytest
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||||
|
.testenv/bin/python3 -m installer .dist/*.whl
|
||||||
|
.testenv/bin/python3 -m pytest
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
|
Loading…
Reference in a new issue