mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 19:47:13 +08:00
38 lines
1.3 KiB
Bash
38 lines
1.3 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=twisted
|
|
pkgver=10.2.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=('pyopenssl'
|
|
'python-soappy:for twisted.web.soap')
|
|
install=twisted.install
|
|
source=(http://tmrc.mit.edu/mirror/twisted/Twisted/${pkgver%.*}/Twisted-${pkgver}.tar.bz2
|
|
4771.diff)
|
|
md5sums=('73da62c793269eade8121da336b01ba5'
|
|
'087ed6149abca43919dcece24ba222ab')
|
|
build() {
|
|
cd "${srcdir}/Twisted-${pkgver}"
|
|
#http://twistedmatrix.com/trac/ticket/4771
|
|
patch -Np0 -i ${srcdir}/4771.diff
|
|
|
|
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
|
|
}
|