[arch-commits] Commit in python-pip/repos (testing-any testing-any/PKGBUILD)
Dan McGee
dan at archlinux.org
Wed Dec 24 16:31:16 UTC 2014
Date: Wednesday, December 24, 2014 @ 17:31:15
Author: dan
Revision: 228020
archrelease: copy trunk to testing-any
Added:
python-pip/repos/testing-any/
python-pip/repos/testing-any/PKGBUILD
(from rev 228019, python-pip/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: python-pip/repos/testing-any/PKGBUILD (from rev 228019, python-pip/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD (rev 0)
+++ testing-any/PKGBUILD 2014-12-24 16:31:15 UTC (rev 228020)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Dan McGee <dan at archlinux.org>
+# Contributor: Sebastien Binet <binet at lblbox>
+
+pkgname=('python-pip' 'python2-pip')
+pkgver=6.0.3
+pkgrel=1
+pkgdesc="The PyPA recommended tool for installing Python packages"
+url="https://pip.pypa.io/"
+arch=('any')
+license=('MIT')
+makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools')
+source=(http://pypi.python.org/packages/source/p/pip/pip-${pkgver}.tar.gz)
+md5sums=('1ca6788e57a176abbdf6d99d69f54ae0')
+sha256sums=('b091a35f5fa0faffac0b27b97e1e1e93ffe63b463c2ea8dbde0c1fb987933614')
+
+package_python-pip() {
+ depends=('python' 'python-setuptools')
+
+ cd "$srcdir/pip-$pkgver"
+ python setup.py build
+ python setup.py install --prefix=/usr --root="$pkgdir"
+
+ install -D -m644 LICENSE.txt \
+ "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-pip() {
+ depends=('python2' 'python2-setuptools')
+ conflicts=('python-pyinstall')
+ replaces=('python-pyinstall')
+
+ 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
+ python2 -m compileall ${pkgdir}/usr/lib/python2.7/site-packages/pip/__init__.py
+
+ install -D -m644 LICENSE.txt \
+ "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
More information about the arch-commits
mailing list