summaryrefslogtreecommitdiff
path: root/extra/twisted/PKGBUILD
blob: 8a743571ae9aff856ce00870a2dac965441c88b6 (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
30
31
32
33
34
35
36
37
# $Id: PKGBUILD 174290 2013-01-03 23:54:14Z eric $
# Maintainer : Ionut Biru <ibiru@archlinux.org>
# Contributor: Juergen Hoetzel <juergen@archlinux.org>
# Contributor:  Douglas Soares de Andrade <douglas@archlinux.org>

pkgname=twisted
pkgver=12.3.0
pkgrel=1
pkgdesc="Asynchronous networking framework written in Python"
arch=('i686' 'x86_64' 'mips64el')
url="http://twistedmatrix.com/"
license=('MIT')
depends=('python2-crypto' 'python2-zope-interface')
optdepends=('python2-pyopenssl'
            'python2-soappy: for twisted.web.soap'
	    'python2-pyasn1: for using conch'
	    'pygtk: for using manhole'
	    'tk: for using tkconch')
install=twisted.install
source=(http://twistedmatrix.com/Releases/Twisted/${pkgver%.*}/Twisted-$pkgver.tar.bz2)
sha1sums=('921bef9a560edd14ea2b559ac0d674f4dac4fd65')

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 -i 's:^#!.*bin.*python:#!/usr/bin/python2:' \
      "$pkgdir"/usr/lib/python2.7/site-packages/twisted/trial/test/scripttest.py \
      "$pkgdir"/usr/lib/python2.7/site-packages/twisted/mail/test/pop3testserver.py \
      "$pkgdir"/usr/lib/python2.7/site-packages/twisted/python/test/pullpipe.py
}