pkgname="python-setuptools-reproducible"
pkgver=0.1
pkgrel=3
pkgdesc="Extension of setuptools to support reproducible builds"
arch=("any")
url="https://github.com/wimglenn/setuptools-reproducible"
license=("MIT")
depends=(python-setuptools)
makedepends=(python-build python-installer python-wheel git)
source=("source::git+https://github.com/wimglenn/setuptools-reproducible.git#tag=v${pkgver}")
sha256sums=('2f19d04c0615c1ce92eac17ea64cbb53738b39ab6c9456e3cb655bfd5d1c847b')


build() {
	cd source
	python -m build --wheel --no-isolation
}

package() {
	cd source
	python -m installer --destdir="$pkgdir" dist/*.whl
	install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
