37 lines
892 B
Bash
37 lines
892 B
Bash
# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
|
|
|
|
_realname=wheel
|
|
pkgname="python-${_realname}"
|
|
pkgver=0.42.0
|
|
pkgrel=1
|
|
pkgdesc="A built-package format for Python"
|
|
arch=('any')
|
|
url="https://pypi.python.org/pypi/wheel"
|
|
msys2_references=(
|
|
"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=('c45be39f7882c9d34243236f2d63cbd58039e360f85d0913425fbd7ceea617a8')
|
|
|
|
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"
|
|
}
|