summaryrefslogtreecommitdiffstats
path: root/abs/extra/community/twisted/PKGBUILD
blob: 13fca6b382fc5b674c6521535afec18fa2177c4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# $Id: PKGBUILD 94591 2010-10-08 12:55:33Z ibiru $
# Maintainer : Ionut Biru <ibiru@archlinux.org>
# Contributor: Juergen Hoetzel <juergen@archlinux.org>
# Contributor:  Douglas Soares de Andrade <douglas@archlinux.org>

pkgname=twisted
pkgver=10.1.0
pkgrel=3
pkgdesc="Asynchronous networking framework written in Python."
arch=('i686' 'x86_64')
url="http://twistedmatrix.com/"
license=('MIT')
depends=('python2' 'pycrypto' 'zope-interface')
optdepends=('pyopenssl'
            'python-soappy:for twisted.web.soap')
install=twisted.install
source=(http://tmrc.mit.edu/mirror/twisted/Twisted/${pkgver%.*}/Twisted-${pkgver}.tar.bz2)
md5sums=('04cca97506e830074cffc1965297da3f')
build() {
  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.6/site-packages/twisted/trial/test/scripttest.py
  sed -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
      -i ${pkgdir}/usr/lib/python2.6/site-packages/twisted/mail/test/pop3testserver.py
}