diff options
author | Erich Eckner <git@eckner.net> | 2023-01-15 20:24:49 +0100 |
---|---|---|
committer | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2023-01-18 10:15:05 +0100 |
commit | ad4829dadc13e7289ad112b15415c0685a4135d2 (patch) | |
tree | 0acafd107286e7bee5753633086f19431f43324a /python-trimesh/PKGBUILD | |
parent | 48e449263b7cc12a418b34a36174c4e3dbc04957 (diff) | |
download | archlinuxewe-ad4829dadc13e7289ad112b15415c0685a4135d2.tar.xz |
python-trimesh new
Diffstat (limited to 'python-trimesh/PKGBUILD')
-rw-r--r-- | python-trimesh/PKGBUILD | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/python-trimesh/PKGBUILD b/python-trimesh/PKGBUILD new file mode 100644 index 000000000..a6712a781 --- /dev/null +++ b/python-trimesh/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: Erich Eckner <arch at eckner dot net> +# Contributor: Brad Pitcher <bradpitcher@gmail.com> +# Contributor: Jelle van der Waa <jelle@archlinux.org> + +pkgname=python-trimesh +pkgver=3.17.1 +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=('8cbf0bedd21c0867c5aa307e9bb8b4e4caff2aabee89cfadfa11513293304caa4b6a5ecce21064b7fa157a2453b58d401eb6010d0ea32bbd5a99c3075f38b826') + +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" +} |