# Maintainer: Martin Diehl pkgver=0.42.1 pkgrel=1 pkgname=python-pyvista _name=${pkgname#python-} pkgdesc='3D plotting and mesh analysis through a streamlined interface for the Visualization Toolkit (VTK)' arch=('any') url='https://www.pyvista.org' license=('MIT') depends=('python-numpy' 'python-imageio' 'python-pillow' 'python-appdirs' 'python-scooby' 'vtk' 'python-matplotlib') makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools') optdepends=('python-meshio') source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") sha512sums=('d2883b6b2e1858952d801778e95cd15c21f2bb6a74ce5e0c0aed3dc96eacf07f681cac96dcab5c7835f299b473940493b8b4d76a953e21e37a778e04b0e61c81') build() { cd "$_name-$pkgver" python setup.py build } package() { cd "$_name-$pkgver" python setup.py install --skip-build --root="$pkgdir" --optimize=1 install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE }