From ccabb1310d15241464a5b1577c9e1c9fe9744fea Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 15 Jan 2023 21:10:21 +0100 Subject: python-svg.path new --- python-svg.path/PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 python-svg.path/PKGBUILD diff --git a/python-svg.path/PKGBUILD b/python-svg.path/PKGBUILD new file mode 100644 index 000000000..f7b7c952c --- /dev/null +++ b/python-svg.path/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Erich Eckner +# Contributor: Brad Pitcher +# Contributer: Jelle van der Waa + +pkgname=python-svg.path +pkgver=6.2 +pkgrel=1 +pkgdesc="SVG path objects and parser" +url="https://github.com/regebro/svg.path" +license=('MIT') +checkdepends=(python-pillow python-pytest) +depends=(python) +makedepends=(python-setuptools) +arch=(any) +source=(${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz) +sha512sums=('7c9a67467e888f4961d54daf2706125c4ae21bb0cd1010f335eb072df78f12b1da99ddcf64a33a85a0e82a8b347f19e876161e3da8ebf43e5e7b45bbaf7d3325') + +build() { + cd "svg.path-${pkgver}" + python setup.py build +} + +check() { + cd "svg.path-${pkgver}" + python setup.py test +} + +package() { + cd "svg.path-${pkgver}" + python setup.py install --root="${pkgdir}" --optimize=1 --skip-build + + install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/${pkgname}/LICENSE" +} -- cgit v1.2.3-70-g09d2