diff --git a/python-wheel/PKGBUILD b/python-wheel/PKGBUILD index d3a070c4..44ab754f 100644 --- a/python-wheel/PKGBUILD +++ b/python-wheel/PKGBUILD @@ -2,18 +2,31 @@ _realname=wheel pkgname="python-${_realname}" -pkgver=0.38.4 -pkgrel=3 +pkgver=0.40.0 +pkgrel=1 pkgdesc="A built-package format for Python" arch=('any') url="https://pypi.python.org/pypi/wheel" license=('spdx:MIT') depends=("python") -makedepends=("python-installer") -source=("https://pypi.debian.net/wheel/wheel-${pkgver}-py3-none-any.whl") -sha256sums=('b60533f3f5d530e971d6737ca6d58681ee434818fab630c83a734bb10c083ce8') +makedepends=( + "python-flit-core" + "python-installer" + "python-build" +) +source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz") +sha256sums=('cd1196f3faee2b31968d626e1731c94f99cbdb67cf5a46e4f5656cbee7738873') + +build() { + cd "${_realname}-${pkgver}" + + python -m build --wheel --skip-dependency-check --no-isolation +} + package() { - python -m installer --destdir="${pkgdir}" *.whl - install -Dm644 *.dist-info/LICENSE.txt "${pkgdir}/usr/share/licenses/python-${_realname}/COPYING" + cd "${_realname}-${pkgver}" + + python -m installer --destdir="${pkgdir}" dist/*.whl + install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt" }