34 lines
883 B
Bash
34 lines
883 B
Bash
# Template file for 'python-pip'
|
|
pkgname=python-pip
|
|
version=18.0
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="pip-${version}"
|
|
build_style=python-module
|
|
pycompile_module="pip"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-setuptools"
|
|
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=a0e11645ee37c90b40c46d607070c4fd583e2cd46231b1c06e389c5e814eed76
|
|
alternatives="pip:pip:/usr/bin/pip2"
|
|
|
|
post_install() {
|
|
vlicense LICENSE.txt
|
|
}
|
|
|
|
python3-pip_package() {
|
|
noarch=yes
|
|
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
|
|
}
|
|
}
|