# Maintainer: Guillaume Horel pkgname=python-fpdf2 _name=${pkgname#python-} pkgver=2.3.0 pkgrel=1 pkgdesc='Simple PDF generation for Python' arch=(any) url='https://pyfpdf.github.io/fpdf2/' license=(LGPL3) conflicts=('python-fpdf') depends=('python-pillow') makedepends=('python-setuptools') source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") sha256sums=('a7583954ab7f9664c43ed1a3e523ee23f42649b366680f03b9a2397c795087ef') build() { cd "$_name-$pkgver" python setup.py build } package() { cd "$_name-$pkgver" python setup.py install --root="$pkgdir" --optimize=1 --skip-build }