archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-pplpy / trunk / PKGBUILD
blob1406e08d734e70f6b55737db50711789b4f83159
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
3 _pipname=pplpy
4 pkgname=python-pplpy
5 pkgver=0.8.7
6 pkgrel=7
7 pkgdesc='Python wrapper to the C++ Parma Polyhedra Library (PPL)'
8 arch=(x86_64)
9 url='https://gitlab.com/videlec/pplpy/'
10 license=(LGPL2.1)
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')
16 build() {
17   cd $_pipname-$pkgver
18   python setup.py build
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
24 package() {
25   cd $_pipname-$pkgver 
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