1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
7 pkgdesc='Python wrapper to the C++ Parma Polyhedra Library (PPL)'
9 url='https://gitlab.com/videlec/pplpy/'
11 depends=(python-cysignals python-gmpy2 ppl)
12 makedepends=(cython python-setuptools python-sphinx)
13 source=(https://pypi.io/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$pkgver.tar.gz)
14 sha256sums=('500bd0f4ae1a76956fae7fcba77854f5ec3e64fce76803664983763c3f2bd8bd')
20 _pythonver=`python -c "from sysconfig import get_python_version; print(get_python_version())"`
21 PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-${_pythonver/./}" make -C docs html
26 python setup.py install --root="$pkgdir" --optimize=1 --skip-build
28 mkdir -p "$pkgdir"/usr/share/doc/pplpy
29 cp -r docs/build/html/* "$pkgdir"/usr/share/doc/pplpy