aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-twisted/APKBUILD
blob: 4e96c8a786f191daa31b87580d9c9b70ebade5e5 (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
36
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py-twisted
_pkgname=Twisted
pkgver=16.3.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="python2-dev py-setuptools libtirpc-dev"
install=""
subpackages="$pkgname-doc"
source="https://twistedmatrix.com/Releases/${_pkgname}/${pkgver%.*}/${_pkgname}-${pkgver}.tar.bz2"

_builddir="$srcdir"/"$_pkgname"-$pkgver

build() {
	cd "$_builddir"
	CFLAGS="$CFLAGS `pkgconf --cflags libtirpc`" python2 setup.py build || return 1
}

package() {
	cd "$_builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
	install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
	_mans="pyhtmlizer.1 trial.1 twistd.1"
	for _man in $_mans; do
		install -m644 -D "$_builddir"/docs/core/man/$_man \
			"$pkgdir"/usr/share/man/man1/$_man  || return 1
	done
}

md5sums="e044af844623e9fbcbe29f578db6053a  Twisted-16.3.0.tar.bz2"
sha256sums="d588a87243ac20e72daef520c1248cb5391e1d583999b8c29a7ae5f97474974f  Twisted-16.3.0.tar.bz2"
sha512sums="29be3fa31c5b0fee33ed9040683d1df5ebfb538cfebfb1e63026da8ce515cb56f012b4302da7f61d9648075be37926989e755a1e0123e915e16ff00276974000  Twisted-16.3.0.tar.bz2"