mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-18 14:21:57 +01:00
36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=py-twisted
|
|
_pkgname=Twisted
|
|
pkgver=13.1.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://twistedmatrix.com/Releases/Core/${pkgver%.*}/"$_pkgname"Core-$pkgver.tar.bz2"
|
|
|
|
_builddir="$srcdir"/"$_pkgname"Core-$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 tapconvert.1 trial.1 twistd.1"
|
|
for _man in $_mans; do
|
|
install -m644 -D "$_builddir"/doc/man/$_man \
|
|
"$pkgdir"/usr/share/man/man1/$_man || return 1
|
|
done
|
|
}
|
|
|
|
md5sums="8560846378a5c00609e91cbe198bdeaa TwistedCore-13.1.0.tar.bz2"
|
|
sha256sums="4668821d44ed6a8e5fb18845fee2326746cfd1a2346a0e1b003218baa12c7565 TwistedCore-13.1.0.tar.bz2"
|
|
sha512sums="d0677c1c607c7bf18db6002c019e5a3fd15eb1a2a38b893315f5e0205933c76d1dd38db8192605003bd3704eda073dad47c7818eb2027a41ccfb99dd0b6a9653 TwistedCore-13.1.0.tar.bz2"
|