void-packages/srcpkgs/python-wheel/template

33 lines
859 B
Bash

# Template file for 'python-wheel'
pkgname=python-wheel
version=0.30.0
revision=1
wrksrc="${pkgname/python-//}-${version}"
build_style=python-module
pycompile_module="wheel"
hostmakedepends="python-setuptools python3-setuptools"
short_desc="A built-package format for Python2"
maintainer="Orphaned <orphan@voidlinux.eu>"
license="MIT"
homepage="https://github.com/pypa/wheel"
distfiles="${PYPI_SITE}/w/wheel/wheel-${version}.tar.gz"
checksum=9515fe0a94e823fd90b08d22de45d7bde57c90edce705b22f5e1ecf7e1b653c8
alternatives="python-wheel:wheel:usr/bin/wheel2"
noarch=yes
post_install() {
vlicense LICENSE.txt
}
python3-wheel_package() {
noarch=yes
pycompile_module="wheel"
short_desc="${short_desc/Python2/Python3}"
alternatives="python-wheel:wheel:usr/bin/wheel3"
pkg_install() {
vmove "usr/bin/*3"
vmove usr/lib/python3*
vlicense LICENSE.txt
}
}