diff options
author | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-12-18 21:12:15 -0300 |
---|---|---|
committer | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-12-18 21:12:15 -0300 |
commit | 437136a9d1b78ff4eea10589099d343c305b9d43 (patch) | |
tree | 603d509651d3c9f5115b3e1c074d9f8d3d3fa6e0 /testing/twisted/PKGBUILD | |
parent | 1b06975999d3c939ca811b49b6e731a4955a4684 (diff) | |
parent | 1a6ff4080dd35e884270c93c1cb270ce3a1d0919 (diff) |
Merge branch 'master' of ssh://gparabola/abslibre-mips64el
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..84d918a8c --- /dev/null +++ b/testing/twisted/PKGBUILD @@ -0,0 +1,34 @@ +# $Id: PKGBUILD 145058 2011-12-15 22:26:04Z 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.1.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=('972f3497e6e19318c741bf2900ffe31c') + +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 +} |