# Maintainer: zoe pkgname=pdfcropmargins PkgName=pdfCropMargins pkgver=2.1.2 pkgrel=3 pkgdesc="Automatically crops the margins of PDF files" url="https://pypi.org/project/pdfCropMargins/" arch=('any') license=('GPL') makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') depends=('python-pillow' 'python-pysimplegui' 'python-pymupdf') optdepends=('ghostscript' 'poppler') install=${pkgname}.install source=("https://github.com/abarker/${PkgName}/archive/refs/tags/release_${pkgver}.zip") md5sums=('c9d1aaccf5d9a7f8c926cea67287b747') build() { cd ${PkgName}-release_$pkgver python -m build --wheel --no-isolation } package() { cd ${PkgName}-release_$pkgver python -m installer --destdir="$pkgdir" dist/*.whl }