# Template file for 'python-pip' pkgname=python-pip version=8.0.3 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-setuptools" pycompile_module="pip" short_desc="The PyPA recommended tool for installing PyPI packages (Python2)" maintainer="Alessio Sergi " homepage="https://pip.pypa.io/" license="MIT" distfiles="${PYPI_SITE}/p/pip/pip-${version}.tar.gz" checksum=30f98b66f3fe1069c529a491597d34a1c224a68640c82caf2ade5f88aa1405e8 pre_build() { sed -i '/^#!/d' pip/__init__.py } post_install() { rm -f ${DESTDIR}/usr/bin/pip ln -sf pip2.7 ${DESTDIR}/usr/bin/pip vlicense LICENSE.txt LICENSE } python3.4-pip_package() { noarch=yes depends="python3.4-setuptools" 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 LICENSE } }