[arch-commits] Commit in python-pip/repos (staging-any staging-any/PKGBUILD)

Felix Yan fyan at archlinux.org
Sat Sep 19 09:37:09 UTC 2015


    Date: Saturday, September 19, 2015 @ 11:37:09
  Author: fyan
Revision: 246581

archrelease: copy trunk to staging-any

Added:
  python-pip/repos/staging-any/
  python-pip/repos/staging-any/PKGBUILD
    (from rev 246580, python-pip/trunk/PKGBUILD)

----------+
 PKGBUILD |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

Copied: python-pip/repos/staging-any/PKGBUILD (from rev 246580, python-pip/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2015-09-19 09:37:09 UTC (rev 246581)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Dan McGee <dan at archlinux.org>
+# Contributor: Sebastien Binet <binet at lblbox>
+
+pkgname=('python-pip' 'python2-pip')
+pkgver=7.1.2
+pkgrel=2
+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=('3823d2343d9f3aaab21cf9c917710196')
+sha256sums=('ca047986f0528cfa975a14fb9f7f106271d4e0c3fe1ddced6c1db2e7ae57a477')
+
+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