# Maintainer: Natanael Copa pkgname=py-twisted-conch pkgver=13.1.0 pkgrel=0 pkgdesc="SSH and SFTP protocol implementation together with clients and servers" url="http://twistedmatrix.com/trac/wiki/TwistedConch" arch="noarch" license="MIT" depends="py-twisted py-crypto py-asn1" makedepends="python-dev" source="http://twistedmatrix.com/Releases/Conch/${pkgver%.*}/TwistedConch-$pkgver.tar.bz2" _builddir="$srcdir"/TwistedConch-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" python setup.py build || return 1 } package() { cd "$_builddir" python setup.py install --prefix=/usr --root="$pkgdir" || return 1 } md5sums="c9315e62f0faef8076c67e52a461bfca TwistedConch-13.1.0.tar.bz2" sha256sums="570f961d23ef30bf4e3f8629dcc22731fdfe495ce78e8ae6cef7dc9c48d7d89f TwistedConch-13.1.0.tar.bz2" sha512sums="1d8054056248fdb3fc2e2e34ad4cbf7c7866af23989961321bc9b9c438133e9373e5902ad7d2ad88a6e7aa130a7b196ec727df24ad85681a1dc2cdbe4defb3db TwistedConch-13.1.0.tar.bz2"