# Contributor: Leo # Maintainer: Rasmus Thomsen pkgname=py3-defcon pkgver=0.10.2 pkgrel=2 pkgdesc="Flexible objects for represnting UFO data" options="!check" # Requires unpackaged FontPens url="https://github.com/robotools/defcon" arch="noarch" license="MIT" depends="python3 py3-fonttools py3-fs py3-unicodedata2" makedepends=" py3-gpep517 py3-installer py3-setuptools py3-setuptools_scm py3-wheel " subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/robotools/defcon/archive/refs/tags/$pkgver.tar.gz" builddir="$srcdir/defcon-$pkgver" build() { export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } package() { python3 -m installer -d "$pkgdir" \ .dist/defcon-*.whl rm -rf "$pkgdir"/usr/lib/python3*/site-packages/defcon/test } sha512sums=" fada72ff846d377e76e259255dbb6f3170c6e87c793f891bed2b5e827ae3001864872eda92a9bb031f32194a7b61089a29908e510f6a4dece8e94828f82e1798 py3-defcon-0.10.2.tar.gz "