# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-build _pkgname=build pkgver=0.10.0 pkgrel=1 pkgdesc="Correct PEP517 package builder" url="https://github.com/pypa/build" arch="noarch" license="MIT" depends="python3 py3-packaging py3-pyproject-hooks" makedepends="py3-wheel py3-flit-core py3-gpep517 py3-installer py3-pyproject-hooks" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/b/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver replaces=py-build # Backwards compatibility provides=py-build=$pkgver-r$pkgrel # Backwards compatibility build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } # Test suite is not shipped at the moment check() { python3 -m venv --clear --without-pip --system-site-packages test-env test-env/bin/python3 -m installer .dist/build*.whl test-env/bin/python3 -m build --version } package() { python3 -m installer -d "$pkgdir" \ .dist/build*.whl } sha512sums=" 7278b570fa1e1eb6e6d4c04298eee2917311a29f0d6e1497945f00b7d1028c4d932b3d74a533ef6aaa46d7d3f140dd7e5b3781c5fd62f5f828ed227d5ff77565 build-0.10.0.tar.gz "