[arch-commits] Commit in python-paramiko/repos/community-any (PKGBUILD PKGBUILD)

Felix Yan fyan at nymeria.archlinux.org
Mon Mar 17 10:02:21 UTC 2014


    Date: Monday, March 17, 2014 @ 11:02:20
  Author: fyan
Revision: 107414

archrelease: copy trunk to community-any

Added:
  python-paramiko/repos/community-any/PKGBUILD
    (from rev 107410, python-paramiko/trunk/PKGBUILD)
Deleted:
  python-paramiko/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   91 +++++++++++++++++++++++++++++++++++++------------------------
 1 file changed, 56 insertions(+), 35 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2014-03-17 10:02:20 UTC (rev 107413)
+++ PKGBUILD	2014-03-17 10:02:20 UTC (rev 107414)
@@ -1,35 +0,0 @@
-# $Id$
-# Maintainer: Angel Velasquez <angvp at archlinux.org> 
-# Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
-# Contributor: Mario Danic <mario.danic at gmail.com>
-
-pkgbase=python-paramiko
-pkgname=python2-paramiko
-pkgver=1.12.2
-pkgrel=1
-pkgdesc="Python module that implements the SSH2 protocol"
-url="https://github.com/paramiko/paramiko/"
-license=('LGPL')
-arch=('any')
-depends=('python2-crypto' 'python2-ecdsa')
-source=("http://pypi.python.org/packages/source/p/paramiko/paramiko-$pkgver.tar.gz")
-md5sums=('1453e37f868b76af84dd1319e08c53f9')
-
-check() {
-    cd $srcdir/paramiko-$pkgver
-    python2 test.py
-}
-
-package_python2-paramiko() {
-  cd "$srcdir/paramiko-$pkgver"
-
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 README "$pkgdir/usr/share/doc/$pkgname/README"
-  install -dm755 "$pkgdir/usr/share/doc/$pkgname/demos"
-  install -m644 demos/* "$pkgdir/usr/share/doc/$pkgname/demos"
-  chmod 755 "$pkgdir/usr/share/doc/$pkgname/demos/"*.py
-
-  find "$pkgdir" -name '*.py' -print0 |xargs -0 \
-    sed -i -e 's,^#!/usr/bin/env python$,#!/usr/bin/env python2,' \
-    -e 's,^#!/usr/bin/python$,#!/usr/bin/python2,'
-}

Copied: python-paramiko/repos/community-any/PKGBUILD (from rev 107410, python-paramiko/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2014-03-17 10:02:20 UTC (rev 107414)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Angel Velasquez <angvp at archlinux.org> 
+# Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
+# Contributor: Mario Danic <mario.danic at gmail.com>
+
+pkgbase=python-paramiko
+pkgname=(python-paramiko python2-paramiko)
+pkgver=1.13.0
+pkgrel=1
+pkgdesc="Python module that implements the SSH2 protocol"
+url="https://github.com/paramiko/paramiko/"
+license=('LGPL')
+arch=('any')
+makedepends=('python-ecdsa' 'python2-ecdsa' 'python-crypto' 'python2-crypto')
+source=("http://pypi.python.org/packages/source/p/paramiko/paramiko-$pkgver.tar.gz")
+md5sums=('acc53ee396dd907220a4141e118a845d')
+
+prepare() {
+    cp -r paramiko-$pkgver{,-py2}
+}
+
+check() {
+    cd "$srcdir/paramiko-$pkgver"
+    # Workaround encoding issue
+    LANG=en_US.UTF-8 python test.py
+
+    cd "$srcdir/paramiko-$pkgver-py2"
+    LANG=en_US.UTF-8 python2 test.py
+}
+
+package_python-paramiko() {
+  depends=('python-crypto' 'python-ecdsa')
+  cd "$srcdir/paramiko-$pkgver"
+
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 README "$pkgdir/usr/share/doc/$pkgname/README"
+  install -dm755 "$pkgdir/usr/share/doc/$pkgname/demos"
+  install -m644 demos/* "$pkgdir/usr/share/doc/$pkgname/demos"
+  chmod 755 "$pkgdir/usr/share/doc/$pkgname/demos/"*.py
+}
+
+package_python2-paramiko() {
+  depends=('python2-crypto' 'python2-ecdsa')
+  cd "$srcdir/paramiko-$pkgver-py2"
+
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 README "$pkgdir/usr/share/doc/$pkgname/README"
+  install -dm755 "$pkgdir/usr/share/doc/$pkgname/demos"
+  install -m644 demos/* "$pkgdir/usr/share/doc/$pkgname/demos"
+  chmod 755 "$pkgdir/usr/share/doc/$pkgname/demos/"*.py
+
+  find "$pkgdir" -name '*.py' -print0 |xargs -0 \
+    sed -i -e 's,^#!/usr/bin/env python$,#!/usr/bin/env python2,' \
+    -e 's,^#!/usr/bin/python$,#!/usr/bin/python2,'
+}
+




More information about the arch-commits mailing list