41 lines
1 KiB
Text
41 lines
1 KiB
Text
# Template file for 'python-pip'
|
|
pkgname=python-pip
|
|
version=6.0.6
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="pip-${version}"
|
|
build_style=python-module
|
|
python_versions="2.7 3.4"
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
depends="python"
|
|
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=3a14091299dcdb9bab9e9004ae67ac401f2b1b14a7c98de074ca74fdddf4bfa0
|
|
|
|
pre_install() {
|
|
sed -i 's,#!/usr/bin/env python,&3.4,' build-3.4/lib/pip/__init__.py
|
|
}
|
|
|
|
post_install() {
|
|
rm -f ${DESTDIR}/usr/bin/pip
|
|
ln -sf pip2.7 ${DESTDIR}/usr/bin/pip
|
|
vlicense LICENSE.txt
|
|
}
|
|
|
|
python3.4-pip_package() {
|
|
noarch=yes
|
|
depends="python3.4"
|
|
pycompile_version="3.4"
|
|
pycompile_module="pip"
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
pkg_install() {
|
|
vmove usr/bin/pip3
|
|
vmove usr/bin/pip3.4
|
|
vmove usr/lib/python3.4
|
|
vlicense LICENSE.txt
|
|
}
|
|
}
|