# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py-paramiko _pkgname=paramiko pkgver=1.7.7.1 pkgrel=0 pkgdesc="SSH2 protocol library for Python" url="http://www.lag.net/paramiko/" arch="noarch" license="LGPL2+" depends="py-crypto" depends_dev="" makedepends="python-dev" install="" subpackages="$pkgname-demos $pkgname-docs" source="http://www.lag.net/paramiko/download/$_pkgname-$pkgver.tar.gz" _builddir="$srcdir"/$_pkgname-$pkgver build() { cd "$_builddir" python setup.py build || return 1 } package() { cd "$_builddir" python setup.py install --prefix=/usr --root="$pkgdir" || return 1 } demos() { # Put the demo files into a seperate package mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname"/demos || return 1 mv "$_builddir"/demos "$subpkgdir"/usr/share/doc/"$pkgname"/ || return 1 } docs() { # Put the documentation files into a seperate package mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname"/docs || return 1 mv "$_builddir"/docs "$subpkgdir"/usr/share/doc/"$pkgname"/ || return 1 } md5sums="ce8e2c254378312a264206f65c354d72 paramiko-1.7.7.1.tar.gz"