void-packages/srcpkgs/python-pip/template
2019-12-25 15:41:13 +01:00

34 lines
885 B
Bash

# Template file for 'python-pip'
pkgname=python-pip
version=19.3.1
revision=1
archs=noarch
wrksrc="pip-${version}"
build_style=python-module
pycompile_module="pip"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools"
short_desc="PyPA recommended tool for installing PyPI packages (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="MIT"
homepage="https://pip.pypa.io/"
distfiles="${PYPI_SITE}/p/pip/pip-${version}.tar.gz"
checksum=21207d76c1031e517668898a6b46a9fb1501c7a4710ef5dfd6a40ad9e6757ea7
alternatives="pip:pip:/usr/bin/pip2"
post_install() {
vlicense LICENSE.txt
}
python3-pip_package() {
archs=noarch
pycompile_module="pip"
depends="python3-setuptools"
short_desc="${short_desc/Python2/Python3}"
alternatives="pip:pip:/usr/bin/pip3"
pkg_install() {
vmove usr/bin/pip3
vmove usr/lib/python3*
vlicense LICENSE.txt
}
}