void-packages/srcpkgs/python-pip/template

34 lines
909 B
Bash

# Template file for 'python-pip'
pkgname=python-pip
version=20.0.2
revision=1
archs=noarch
wrksrc="pip-${version}"
build_style=python-module
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/"
changelog="https://raw.githubusercontent.com/pypa/pip/master/NEWS.rst"
distfiles="${PYPI_SITE}/p/pip/pip-${version}.tar.gz"
checksum=7db0c8ea4c7ea51c8049640e8e6e7fde949de672bfa4949920675563a5a6967f
alternatives="pip:pip:/usr/bin/pip2"
post_install() {
vlicense LICENSE.txt
}
python3-pip_package() {
archs=noarch
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
}
}