mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-04 06:37:15 +08:00
36 lines
1.2 KiB
Bash
36 lines
1.2 KiB
Bash
#
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# Maintainer: Adrian Chaves Fernandez (Gallaecio) <adriyetichaves@gmail.com>
|
|
|
|
pkgname=python2-twisted
|
|
_pkgname=Twisted
|
|
pkgver=12.2.0
|
|
pkgrel=1
|
|
pkgdesc="Asynchronous networking framework written in Python"
|
|
arch=('i686' 'x86_64')
|
|
url="http://twistedmatrix.com/"
|
|
license=('MIT')
|
|
depends=('python2' 'python2-crypto' 'python2-zope-interface')
|
|
optdepends=('pyopenssl'
|
|
'python-soappy: for twisted.web.soap')
|
|
provides=('twisted')
|
|
conflicts=('twisted')
|
|
replaces=('twisted')
|
|
install=${pkgname}.install
|
|
source=(http://twistedmatrix.com/Releases/${_pkgname}/${pkgver%.*}/${_pkgname}-${pkgver}.tar.bz2
|
|
4771.diff)
|
|
md5sums=('9a321b904d01efd695079f8484b37861'
|
|
'087ed6149abca43919dcece24ba222ab')
|
|
build() {
|
|
cd "${srcdir}/${_pkgname}-${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
|
|
}
|