# Contributor: Patrycja Rosa # Maintainer: Patrycja Rosa pkgname=py3-zopfli pkgver=0.2.2 pkgrel=2 pkgdesc="Python bindings to zopfli" url="https://github.com/fonttools/py-zopfli" arch="all" license="Apache-2.0" depends="python3" makedepends="python3-dev zopfli-dev py3-wheel py3-setuptools py3-setuptools_scm" checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="https://github.com/fonttools/py-zopfli/archive/refs/tags/v$pkgver/py3-zopfli-$pkgver.tar.gz" builddir="$srcdir/py-zopfli-$pkgver" export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver build() { USE_SYSTEM_ZOPFLI=1 python3 setup.py build } check() { PYTHONPATH=$(echo build/lib.*) pytest } package() { python3 setup.py install --skip-build --prefix=/usr --root="$pkgdir" } sha512sums=" 81b0bac25f161209825ab993ebbec9d4261372ee9c9d043eafc89481c5f22aa6ff44d2c3b96bf86f1c092f4385ba5cb23ea2e126fc69468c06dc95c4c6dca8ba py3-zopfli-0.2.2.tar.gz "