diff options
author | root <root@rshg054.dnsready.net> | 2012-10-17 01:15:52 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-10-17 01:15:52 -0700 |
commit | c84b2cd310f86dc50c4f52a5907cb17652e8c87c (patch) | |
tree | ef3dc614b68e1e6f5966a5d29f3970e27bb7c4f9 /testing/twisted/PKGBUILD | |
parent | 99d0ec7ebad2eda5f3a03098962e3b250e3bef4c (diff) |
Wed Oct 17 01:14:52 PDT 2012
Diffstat (limited to 'testing/twisted/PKGBUILD')
-rw-r--r-- | testing/twisted/PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/twisted/PKGBUILD b/testing/twisted/PKGBUILD new file mode 100644 index 000000000..26514d9f3 --- /dev/null +++ b/testing/twisted/PKGBUILD @@ -0,0 +1,37 @@ +# $Id: PKGBUILD 168885 2012-10-16 11:55:48Z allan $ +# Maintainer : Ionut Biru <ibiru@archlinux.org> +# Contributor: Juergen Hoetzel <juergen@archlinux.org> +# Contributor: Douglas Soares de Andrade <douglas@archlinux.org> + +pkgname=twisted +pkgver=12.2.0 +pkgrel=2 +pkgdesc="Asynchronous networking framework written in Python." +arch=('i686' 'x86_64') +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=('c51834c1270e7a4bb0de9190056e4317413920f9') + +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 +} |