[arch-commits] Commit in python-virtualenv/repos (staging-any staging-any/PKGBUILD)
Evangelos Foutras
foutrelis at archlinux.org
Sat Sep 19 10:27:59 UTC 2015
Date: Saturday, September 19, 2015 @ 12:27:59
Author: foutrelis
Revision: 246594
archrelease: copy trunk to staging-any
Added:
python-virtualenv/repos/staging-any/
python-virtualenv/repos/staging-any/PKGBUILD
(from rev 246593, python-virtualenv/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: python-virtualenv/repos/staging-any/PKGBUILD (from rev 246593, python-virtualenv/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD (rev 0)
+++ staging-any/PKGBUILD 2015-09-19 10:27:59 UTC (rev 246594)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Dan McGee <dan at archlinux.org>
+# Contributor: Daniele Paolella <dp at mcrservice.it>
+
+pkgname=('python-virtualenv' 'python2-virtualenv')
+pkgver=13.1.2
+pkgrel=2
+pkgdesc="Virtual Python Environment builder"
+url="https://virtualenv.pypa.io/"
+arch=('any')
+license=('MIT')
+makedepends=('python' 'python2')
+replaces=('virtualenv')
+conflicts=('virtualenv')
+source=("http://pypi.python.org/packages/source/v/virtualenv/virtualenv-$pkgver.tar.gz")
+md5sums=('b989598f068d64b32dead530eb25589a')
+sha256sums=('aabc8ef18cddbd8a2a9c7f92bc43e2fea54b1147330d65db920ef3ce9812e3dc')
+
+package_python-virtualenv() {
+ depends=('python')
+
+ cd "$srcdir/virtualenv-$pkgver"
+ LANG='en_US.UTF-8' python3 setup.py build
+ LANG='en_US.UTF-8' python3 setup.py install --prefix=/usr --root="$pkgdir"
+
+ # link to a version with 3 suffix as well
+ ln "$pkgdir/usr/bin/virtualenv" "$pkgdir/usr/bin/virtualenv3"
+
+ install -D -m644 LICENSE.txt \
+ "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-virtualenv() {
+ depends=('python2')
+
+ cd "$srcdir/virtualenv-$pkgver"
+
+ # should report this upstream as still not fixed...
+ sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|" virtualenv.py
+
+ python2 setup.py build
+ python2 setup.py install --prefix=/usr --root="$pkgdir"
+
+ # move this "old" version out of the way
+ mv "$pkgdir/usr/bin/virtualenv" "$pkgdir/usr/bin/virtualenv2"
+
+ install -D -m644 LICENSE.txt \
+ "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
More information about the arch-commits
mailing list