[arch-commits] Commit in python-paramiko/repos (2 files)
Felix Yan
fyan at archlinux.org
Sun Sep 20 01:54:45 UTC 2015
Date: Sunday, September 20, 2015 @ 03:54:45
Author: fyan
Revision: 141110
archrelease: copy trunk to community-staging-any
Added:
python-paramiko/repos/community-staging-any/
python-paramiko/repos/community-staging-any/PKGBUILD
(from rev 141109, python-paramiko/trunk/PKGBUILD)
----------+
PKGBUILD | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
Copied: python-paramiko/repos/community-staging-any/PKGBUILD (from rev 141109, python-paramiko/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2015-09-20 01:54:45 UTC (rev 141110)
@@ -0,0 +1,57 @@
+# $Id$
+# Maintainer: Angel Velasquez <angvp at archlinux.org>
+# Maintainer: Felix Yan <felixonmars 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.15.2
+pkgrel=2
+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=('6bbfb328fe816c3d3652ba6528cc8b4c')
+
+prepare() {
+ cp -a paramiko-$pkgver{,-py2}
+
+ find paramiko-$pkgver-py2 -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,'
+}
+
+check() {
+ cd "$srcdir/paramiko-$pkgver"
+ # Workaround encoding issue
+ LANG=en_US.UTF-8 python test.py || warning "Tests failed" # Fails after actual tests finished
+
+ 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
+}
+
More information about the arch-commits
mailing list