blob: 358c15e1a2fb49b5dd61e01c1d7fef0c3d0c3efa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py-twisted
_pkgname=Twisted
pkgver=14.0.0
pkgrel=0
pkgdesc="Asynchronous networking framework written in Python."
url="http://twistedmatrix.com/"
arch="all"
license="MIT"
depends="py-crypto py-zope-interface"
makedepends="python-dev"
install=""
subpackages="$pkgname-doc"
source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.bz2"
_builddir="$srcdir"/"$_pkgname"-$pkgver
build() {
cd "$_builddir"
python setup.py build || return 1
}
package() {
cd "$_builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
_mans="manhole.1 pyhtmlizer.1 tap2deb.1 tap2rpm.1 tapconvert.1 trial.1 twistd.1"
for _man in $_mans; do
install -m644 -D "$_builddir"/doc/core/man/$_man \
"$pkgdir"/usr/share/man/man1/$_man || return 1
done
}
md5sums="9625c094e0a18da77faa4627b98c9815 Twisted-14.0.0.tar.bz2"
sha256sums="bdfd961ac2216f5c65b07f2c3a5e5116f6713b8c1cf076c40010c64810d26963 Twisted-14.0.0.tar.bz2"
sha512sums="657a89603ffb6a0b5b9f41307d2f4400e8fd8947f122f40639b0d87cc769a47a09822c1612206e66bdee2be8b297e53a4271682981cdbeca7d910e57c8582413 Twisted-14.0.0.tar.bz2"
|