# Maintainer: Erich Eckner # Contributor: Brad Pitcher # Contributor: Jelle van der Waa pkgname=python-trimesh pkgver=3.18.3 pkgrel=1 pkgdesc='Trimesh is a pure Python library for loading and using triangular meshes with an emphasis on watertight surfaces' arch=('any') url="https://github.com/mikedh/trimesh" license=('MIT') depends=(python python-numpy) makedepends=(python-setuptools) checkdepends=(python-scipy python-networkx python-rtree python-lxml python-shapely python-pillow python-sympy python-requests python-msgpack python-pyglet python-jsonschema python-svg.path python-collada python-pyinstrument python-mapbox-earcut openscad) optdepends=('python-networkx: graph operations' 'python-pyglet: preview windows' 'python-rtree: vector path handling' 'python-scipy: convex hulls' 'python-shapely: vector path handling' 'python-pillow: load images' 'python-jsonschema: validate JSON schemas like GLTF' 'python-requests: network requests' 'python-msgpack: serialize into msgpack' 'python-lxml: handle XML better and faster than built- in XML' 'python-sympy: do analytical math' 'python-svg.path: handle SVG format path strings' 'python-xxhash: hash ndarrays faster than built-in MD5/CRC' 'python-collada: parse collada/dae/zae files') source=(${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz) sha512sums=('af2838ae8ad01b5113d26aa955a906d6e3379f4484711da1cb76f9735f162a3356b6529e4a633ddb552edb54529c7e738e030d881322d24502e6945e17b55074') build() { cd trimesh-${pkgver} python setup.py build } check() { cd trimesh-${pkgver} python -m unittest discover tests } package() { cd trimesh-${pkgver} python setup.py install --root="${pkgdir}" --optimize=1 --skip-build install -D -m644 LICENSE.md "$pkgdir/usr/share/licenses/${pkgname}/LICENSE" }