32 lines
882 B
Bash
32 lines
882 B
Bash
# Template file for 'python-pip'
|
|
pkgname=python-pip
|
|
version=20.2.3
|
|
revision=1
|
|
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=30c70b6179711a7c4cf76da89e8a0f5282279dfb0278bec7b94134be92543b6d
|
|
alternatives="pip:pip:/usr/bin/pip2"
|
|
|
|
post_install() {
|
|
vlicense LICENSE.txt
|
|
}
|
|
|
|
python3-pip_package() {
|
|
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
|
|
}
|
|
}
|