38 lines
1.1 KiB
Bash
38 lines
1.1 KiB
Bash
# Template file for 'python-wheel'
|
|
pkgname=python-wheel
|
|
version=0.35.1
|
|
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"
|
|
# upstream forgot to include LICENSE.txt in release
|
|
distfiles="${PYPI_SITE}/w/wheel/wheel-${version}.tar.gz
|
|
https://raw.githubusercontent.com/pypa/wheel/${version}/LICENSE.txt"
|
|
checksum="99a22d87add3f634ff917310a3d87e499f19e663413a52eb9232c447aa646c9f
|
|
cca9e20c6af1fcfbf69408f377769286cbeebcded336100c9b4a3f35fbe635e4"
|
|
alternatives="wheel:wheel:usr/bin/wheel2"
|
|
skip_extraction="LICENSE.txt"
|
|
|
|
post_install() {
|
|
cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/LICENSE.txt .
|
|
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
|
|
}
|
|
}
|