mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 12:25:11 +08:00
51 lines
1.6 KiB
Bash
51 lines
1.6 KiB
Bash
# Maintainer: H W Tovetjärn (totte) <totte@tott.es>
|
|
# Contributors: Neophytos Kolokotronis (tetris4) <tetris4@gmail.com>
|
|
# Stephen McIntosh <stephenmac7@gmail.com>
|
|
# Dan McGee <dan@archlinux.org>
|
|
# Sebastien Binet <binet@lblbox>
|
|
|
|
pkgname=('python3-pip' 'python2-pip')
|
|
pkgver=1.5.6
|
|
pkgrel=1
|
|
pkgdesc="An easy_install replacement for installing pypi python packages"
|
|
url="http://www.pip-installer.org/"
|
|
arch=('any')
|
|
license=('MIT')
|
|
makedepends=('python3' 'python3-setuptools' 'python2' 'python2-setuptools')
|
|
source=(http://pypi.python.org/packages/source/p/pip/pip-${pkgver}.tar.gz)
|
|
md5sums=('01026f87978932060cc86c1dc527903e')
|
|
|
|
package_python3-pip() {
|
|
depends=('python3' 'python3-setuptools')
|
|
|
|
cd "$srcdir/pip-$pkgver"
|
|
python3 setup.py build
|
|
python3 setup.py install \
|
|
--prefix=/usr \
|
|
--root="$pkgdir"
|
|
|
|
mv "$pkgdir/usr/bin/pip" "$pkgdir/usr/bin/pip3"
|
|
sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python3|" \
|
|
${pkgdir}/usr/lib/python3.4/site-packages/pip/__init__.py
|
|
|
|
install -D -m644 LICENSE.txt \
|
|
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|
|
|
|
package_python2-pip() {
|
|
depends=('python2' 'python2-setuptools')
|
|
|
|
cd "$srcdir/pip-$pkgver"
|
|
python2 setup.py build
|
|
python2 setup.py install \
|
|
--prefix=/usr \
|
|
--root="$pkgdir"
|
|
|
|
mv "$pkgdir/usr/bin/pip" "$pkgdir/usr/bin/pip2"
|
|
sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|" \
|
|
${pkgdir}/usr/lib/python2.7/site-packages/pip/__init__.py
|
|
|
|
install -D -m644 LICENSE.txt \
|
|
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|