Files
MSYS2-packages/python-wheel/PKGBUILD
T

38 lines
910 B
Bash

# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
_realname=wheel
pkgname="python-${_realname}"
pkgver=0.44.0
pkgrel=1
pkgdesc="A built-package format for Python"
arch=('any')
url="https://pypi.python.org/pypi/wheel"
msys2_references=(
"anitya: 11428"
"pypi:wheel"
"cpe: cpe:/a:wheel_project:wheel"
)
license=('spdx:MIT')
depends=("python")
makedepends=(
"python-flit-core"
"python-installer"
"python-build"
)
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz")
sha256sums=('a29c3f2817e95ab89aa4660681ad547c0e9547f20e75b0562fe7723c9a2a9d49')
build() {
cd "${_realname}-${pkgver}"
python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd "${_realname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
}