mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 17:04:36 +08:00
Merge remote-tracking branch 'origin/testing' into testing
This commit is contained in:
commit
bd907a6984
49
python-pip/PKGBUILD
Normal file
49
python-pip/PKGBUILD
Normal file
@ -0,0 +1,49 @@
|
||||
# Apps Packages for Chakra, part of www.chakra-project.org
|
||||
# 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.4.1
|
||||
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-distribute' 'python2' 'python2-distribute')
|
||||
source=(http://pypi.python.org/packages/source/p/pip/pip-${pkgver}.tar.gz)
|
||||
md5sums=('6afbb46aeb48abac658d4df742bff714')
|
||||
|
||||
package_python3-pip() {
|
||||
depends=('python3' 'python3-distribute')
|
||||
|
||||
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.3/site-packages/pip/__init__.py
|
||||
|
||||
install -D -m644 LICENSE.txt \
|
||||
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
||||
|
||||
package_python2-pip() {
|
||||
depends=('python2' 'python2-distribute')
|
||||
|
||||
cd "$srcdir/pip-$pkgver"
|
||||
python2 setup.py build
|
||||
python2 setup.py install \
|
||||
--prefix=/usr \
|
||||
--root="$pkgdir"
|
||||
|
||||
ln "$pkgdir/usr/bin/pip" "$pkgdir/usr/bin/pip2"
|
||||
|
||||
install -D -m644 LICENSE.txt \
|
||||
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
@ -1,29 +0,0 @@
|
||||
# Maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
|
||||
# Contributions from Arch: https://www.archlinux.org/packages/extra/any/python2-pip/
|
||||
|
||||
pkgname=python2-pip
|
||||
pkgver=1.3.1
|
||||
pkgrel=2
|
||||
pkgdesc="An easy_install replacement for installing pypi python packages"
|
||||
url="http://www.pip-installer.org/"
|
||||
arch=('x86_64')
|
||||
license=('MIT')
|
||||
depends=('python2' 'python2-distribute')
|
||||
conflicts=('python-pip')
|
||||
replaces=('python-pip')
|
||||
provides=('python-pip')
|
||||
source=(http://pypi.python.org/packages/source/p/pip/pip-${pkgver}.tar.gz)
|
||||
md5sums=('cbb27a191cebc58997c4da8513863153')
|
||||
|
||||
package() {
|
||||
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"
|
||||
}
|
Loading…
Reference in New Issue
Block a user