# $Id$ # Maintainer: Grey Christoforo pkgname=python-cadquery-git pkgver=2.1.r474.gec54a38 pkgrel=1 pkgdesc="A parametric CAD scripting framework based on PythonOCC built from git" arch=(x86_64) url="https://github.com/CadQuery/cadquery" license=('Apache') provides=(python-cadquery) conflicts=(python-cadquery) depends=( python python-multimethod python-ocp python-ezdxf python-typing_extensions nlopt openvr casadi ) checkdepends=( python-pytest python-nptyping ipython ) source=("git+https://github.com/CadQuery/cadquery.git") md5sums=('SKIP') pkgver() { cd cadquery git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { cd cadquery #curl --silent https://patch-diff.githubusercontent.com/raw/CadQuery/cadquery/pull/937.patch | patch -p1 } build() { cd cadquery python setup.py build } check() { cd cadquery pytest } package() { cd cadquery python setup.py install --root="${pkgdir}" --optimize=1 --skip-build # don't package test dir _i_dir="${pkgdir}/$(python -c 'import sys; print(sys.path[-1])')" rm -rf "${_i_dir}/tests" }