# Maintainer: Guillaume Horel pkgname=python-fpdf2 _name=${pkgname#python-} pkgver=2.8.8 pkgrel=1 pkgdesc='Simple PDF generation for Python' arch=(any) url='https://pyfpdf.github.io/fpdf2/' license=(LGPL-3.0-only) conflicts=('python-fpdf') depends=(python python-pillow python-defusedxml python-fonttools) optdepends=( 'python-endesive: signing support' 'python-uharfbuzz: text shaping support' 'python-cryptography: encryption support' ) makedepends=(python-build python-installer python-setuptools python-wheel) source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") sha256sums=('9e94e155e85e8053329a9a1fce8b566fd7a7c5bb79e98a1a3952d379b947c5b9') build() { cd "$_name-$pkgver" python -m build --wheel --no-isolation } package() { cd "$_name-$pkgver" python -m installer --destdir="$pkgdir" dist/*.whl }