diff options
author | root <root@rshg047.dnsready.net> | 2011-06-07 22:47:46 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-06-07 22:47:46 +0000 |
commit | 4d91fc9a2dc38054b8748f27193dc3a6950bda3c (patch) | |
tree | d7af2e15a96d98c0495de0d066c0204c6947778c /testing/twisted/PKGBUILD | |
parent | 93a9cde1226d0c82849bc71ff4d481d3d2698dc1 (diff) |
Tue Jun 7 22:47:46 UTC 2011
Diffstat (limited to 'testing/twisted/PKGBUILD')
-rw-r--r-- | testing/twisted/PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/twisted/PKGBUILD b/testing/twisted/PKGBUILD new file mode 100644 index 000000000..d25475b8d --- /dev/null +++ b/testing/twisted/PKGBUILD @@ -0,0 +1,34 @@ +# $Id: PKGBUILD 126682 2011-06-06 14:53:30Z ibiru $ +# Maintainer : Ionut Biru <ibiru@archlinux.org> +# Contributor: Juergen Hoetzel <juergen@archlinux.org> +# Contributor: Douglas Soares de Andrade <douglas@archlinux.org> + +pkgname=twisted +pkgver=11.0.0 +pkgrel=1 +pkgdesc="Asynchronous networking framework written in Python." +arch=('i686' 'x86_64') +url="http://twistedmatrix.com/" +license=('MIT') +depends=('python2' 'pycrypto' 'zope-interface') +optdepends=('python2-pyopenssl' + 'python-soappy:for twisted.web.soap') +install=twisted.install +source=(http://twistedmatrix.com/Releases/Twisted/${pkgver%.*}/Twisted-${pkgver}.tar.bz2) +md5sums=('d7f94a1609a1b8f3b8c8d0146d4cfe54') + +build() { + cd "${srcdir}/Twisted-${pkgver}" + python2 setup.py build +} + +package() { + cd "${srcdir}/Twisted-${pkgver}" + python2 setup.py install --prefix=/usr --root=${pkgdir} --optimize=1 + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + sed -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \ + -i ${pkgdir}/usr/lib/python2.7/site-packages/twisted/trial/test/scripttest.py + sed -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \ + -i ${pkgdir}/usr/lib/python2.7/site-packages/twisted/mail/test/pop3testserver.py +} |