void-packages/srcpkgs/python-pip/template
2017-08-28 01:23:07 +02:00

41 lines
1.1 KiB
Bash

# Template file for 'python-pip'
pkgname=python-pip
version=9.0.1
revision=2
noarch=yes
wrksrc="pip-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools"
pycompile_module="pip"
short_desc="The PyPA recommended tool for installing PyPI packages (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://pip.pypa.io/"
license="MIT"
distfiles="${PYPI_SITE}/p/pip/pip-${version}.tar.gz"
checksum=09f243e1a7b461f654c26a725fa373211bb7ff17a9300058b205c61658ca940d
alternatives="pip:pip:/usr/bin/pip2"
post_install() {
vlicense LICENSE.txt LICENSE
}
python3-pip_package() {
noarch=yes
pycompile_module="pip"
replaces="python3.4-pip>=0"
depends="python3-setuptools"
short_desc="${short_desc/Python2/Python3}"
alternatives="pip:pip:/usr/bin/pip3"
pkg_install() {
vmove usr/bin/pip3
vmove ${py3_sitelib}
vlicense LICENSE.txt LICENSE
}
}
python3.4-pip_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-pip>=${version}_${revision}"
}