# Contributor: Aiden Grossman # Maintainer: Aiden Grossman pkgname=pdfposter pkgver=0.7.1 _pkgver=v0.7.post1 # the project uses a weird versioning system that isn't compatible with Alpine's pkgrel=0 pkgdesc="Tool for scaling and tiling PDFs to multiple pages for printing" url="https://gitlab.com/pdftools/pdfposter/" arch="noarch" license="GPL-3.0-only" depends="py3-pypdf2 python3" makedepends="py3-setuptools" checkdepends="py3-pytest" source="https://gitlab.com/pdftools/pdfposter/-/archive/$_pkgver/pdfposter-$_pkgver.tar.gz" builddir="$srcdir/$pkgname-$_pkgver/" build() { python3 setup.py build } check() { python3 -m pytest test/unit } package() { python3 setup.py install --skip-build --root="$pkgdir" --optimize=1 } sha512sums=" 74d463cf1e79c6b6624f40863f5d4527809535119b4e4b6a00820befffa870b403e750ad6009c3fbe833bb284bd958cbc65d2498563108251170c6dda0a867ef pdfposter-v0.7.post1.tar.gz "