Date: Wednesday, April 10, 2013 @ 08:49:14 Author: eric Revision: 182403
upgpkg: twisted 13.0.0-1 Upstream update, Add prepare function Modified: twisted/trunk/PKGBUILD ----------+ PKGBUILD | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2013-04-10 06:11:45 UTC (rev 182402) +++ PKGBUILD 2013-04-10 06:49:14 UTC (rev 182403) @@ -4,7 +4,7 @@ # Contributor: Douglas Soares de Andrade <[email protected]> pkgname=twisted -pkgver=12.3.0 +pkgver=13.0.0 pkgrel=1 pkgdesc="Asynchronous networking framework written in Python" arch=('i686' 'x86_64') @@ -18,20 +18,23 @@ 'tk: for using tkconch') install=twisted.install source=(http://twistedmatrix.com/Releases/Twisted/${pkgver%.*}/Twisted-$pkgver.tar.bz2) -sha1sums=('921bef9a560edd14ea2b559ac0d674f4dac4fd65') +sha1sums=('5c66a4f231a5f3e17860a41498ac80e76a156dca') +prepare() { + cd "Twisted-$pkgver" + sed -i 's:^#!.*bin.*python:#!/usr/bin/python2:' \ + twisted/python/test/pullpipe.py \ + twisted/mail/test/pop3testserver.py \ + twisted/trial/test/scripttest.py +} + build() { - cd "$srcdir/Twisted-$pkgver" + cd "Twisted-$pkgver" python2 setup.py build } package() { - cd "$srcdir/Twisted-$pkgver" + cd "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 }
