Date: Saturday, February 19, 2022 @ 09:23:03 Author: arojas Revision: 1134842
Update to 5.0.1, switch to PEP517 Modified: python-pikepdf/trunk/PKGBUILD ----------+ PKGBUILD | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-02-19 09:20:28 UTC (rev 1134841) +++ PKGBUILD 2022-02-19 09:23:03 UTC (rev 1134842) @@ -3,28 +3,24 @@ # Contributor: Stephan Eisvogel <eisvogel at embinet dot de> pkgname=python-pikepdf -pkgver=5.0.0 +pkgver=5.0.1 pkgrel=1 pkgdesc='Read and write PDFs with Python, powered by qpdf' arch=(x86_64) url='https://github.com/pikepdf/pikepdf' license=(MPL2) -makedepends=(pybind11 python-setuptools-scm python-wheel python-toml) +makedepends=(pybind11 python-build python-installer python-wheel python-toml python-setuptools-scm-git-archive) depends=(python-lxml python-pillow qpdf) source=(https://pypi.python.org/packages/source/p/pikepdf/pikepdf-$pkgver.tar.gz) -sha256sums=('c26365f72168b302d9ae20e9ac105434c1892fbbf386c0bacf67dc40ea437549') +sha256sums=('5fae9eeb7a0120d466fb219aea643a94a1423d68ee9171639a44cf0329ebe7aa') -prepare() { - sed -e '/setuptools_scm_git_archive/d' -i pikepdf-$pkgver/setup.py # Remove unused build dependency -} - build() { cd pikepdf-$pkgver - python setup.py build + python -m build --wheel --no-isolation } package() { cd pikepdf-$pkgver - python setup.py install --root="$pkgdir" --prefix=/usr --optimize=1 --skip-build + python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname }
