# Maintainer: Natanael Copa pkgname=py-twisted _pkgname=Twisted pkgver=15.5.0 pkgrel=0 pkgdesc="Asynchronous networking framework written in Python." url="http://twistedmatrix.com/" arch="all" license="MIT" depends="py-crypto py-zope-interface" makedepends="python-dev py-setuptools libtirpc-dev" install="" subpackages="$pkgname-doc" source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.bz2" _builddir="$srcdir"/"$_pkgname"-$pkgver build() { cd "$_builddir" CFLAGS="$CFLAGS `pkgconf --cflags libtirpc`" python setup.py build || return 1 } package() { cd "$_builddir" python setup.py install --prefix=/usr --root="$pkgdir" || return 1 install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE _mans="manhole.1 pyhtmlizer.1 tap2deb.1 tap2rpm.1 trial.1 twistd.1" for _man in $_mans; do install -m644 -D "$_builddir"/doc/core/man/$_man \ "$pkgdir"/usr/share/man/man1/$_man || return 1 done } md5sums="0831d7c90d0020062de0f7287530a285 Twisted-15.5.0.tar.bz2" sha256sums="a8046804a0dfae090234bbb90fc560a6cc11a208b3d048b55244c79c1945c17f Twisted-15.5.0.tar.bz2" sha512sums="6e2e3e447fcebc2fa57eb2f086164cf9991ab1448084101f845641caef813ced9c2398e8e48bf6e2e18c347dbbee5d6cac70a4686cb1b79e7b1a932149b8f626 Twisted-15.5.0.tar.bz2"