# Maintainer: Carlo Landmeter pkgname=py3-pikepdf _pyname=pikepdf pkgver=1.6.4 pkgrel=0 pkgdesc="A Python library for reading and writing PDF" url=https://github.com/pikepdf/pikepdf arch=all license="MPL-2.0" depends="python3 py3-lxml" makedepends="py3-pybind11-dev py3-setuptools python3-dev qpdf-dev" _pypiprefix="${_pyname%${_pyname#?}}" source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz" builddir=$srcdir/$_pyname-$pkgver options="!check" # tests fail to import pikepdf build() { python3 setup.py build } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="2ef90e12ec73565738a14cd688659d06719fde87d4b9d10cbb2954f8051d80fa5e6b4b4a8e513b9a8b0691001421edb0e8fad433a5bfc36a5978c223e446bbba pikepdf-1.6.4.tar.gz"