summaryrefslogtreecommitdiffstats
path: root/testing/py-twisted-conch/APKBUILD
blob: 690aaad2803e46c2313b6cd3cf4b8c44e1765a6f (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-conch
pkgver=12.3.0
pkgrel=0
pkgdesc="SSH and SFTP protocol implementation together with clients and servers"
url="http://twistedmatrix.com/trac/wiki/TwistedConch"
arch="noarch"
license="MIT"
depends="py-twisted py-crypto py-asn1"
makedepends="python-dev"
source="http://twistedmatrix.com/Releases/Conch/${pkgver%.*}/TwistedConch-$pkgver.tar.bz2"

_builddir="$srcdir"/TwistedConch-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="448f508394387c04492f5d29413a0a73  TwistedConch-12.3.0.tar.bz2"
sha256sums="5d53e9c26c64e31168121565efbfeb117fc11de8d85cc94bee3fc0a1d189e49b  TwistedConch-12.3.0.tar.bz2"
sha512sums="724820896e6ad7b407a5c89b81cc9f4950b12907e67eaf30bad040274215b2cb637731c78fd20b45f60d73f07e40acc74b7c1aa006378f39559c8b0ad22dff66  TwistedConch-12.3.0.tar.bz2"