void-packages/srcpkgs/python-wheel/template
2020-05-18 23:23:03 +02:00

33 lines
848 B
Bash

# Template file for 'python-wheel'
pkgname=python-wheel
version=0.34.2
revision=1
archs=noarch
wrksrc="wheel-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools"
short_desc="Built-package format for Python (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="MIT"
homepage="https://github.com/pypa/wheel"
distfiles="${PYPI_SITE}/w/wheel/wheel-${version}.tar.gz"
checksum=8788e9155fe14f54164c1b9eb0a319d98ef02c160725587ad60f14ddc57b6f96
alternatives="wheel:wheel:usr/bin/wheel2"
post_install() {
vlicense LICENSE.txt
}
python3-wheel_package() {
archs=noarch
depends="python3-setuptools"
short_desc="${short_desc/Python2/Python3}"
alternatives="wheel:wheel:usr/bin/wheel3"
pkg_install() {
vmove usr/bin/*3
vmove usr/lib/python3*
vlicense LICENSE.txt
}
}