# Maintainer: mark.blakeney at bullet-systems dot net pkgname=pdfcmd pkgver=1.9 pkgrel=1 pkgdesc='Utility to perform commands on PDF files.' url="https://github.com/bulletmark/$pkgname" license=(GPL3) arch=(any) depends=("python>=3.5" "python-pypdf") makedepends=(python-setuptools python-build python-installer python-wheel python-setuptools-scm) source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") sha1sums=('3d91dcd51c5cc19502bec2a4375527c8bbae6468') build() { cd "$srcdir/$pkgname-$pkgver" SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver" python -m build --wheel --no-isolation } package() { cd "$srcdir/$pkgname-$pkgver" python -m installer --destdir="$pkgdir" dist/*.whl } # vim:set ts=2 sw=2 et: