summaryrefslogtreecommitdiffstats
path: root/main/py-paramiko/APKBUILD
blob: a66f3a35ae5fb90632b33e2de6f0755fc622b03b (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
37
38
39
40
41
42
43
44
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-paramiko
_pkgname=paramiko
pkgver=1.15.2
pkgrel=0
pkgdesc="An SSH2 protocol library for Python"
url="https://github.com/paramiko/paramiko/"
arch="noarch"
license="LGPL2+"
depends="py-crypto py-ecdsa"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages="$pkgname-demos $pkgname-docs"
source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$_pkgname-$pkgver
build() {
	cd "$_builddir"
	python setup.py build || return 1
    python ./test.py  || return 1
}

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

demos() {
	# Put the demo files into a seperate package
	mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname"/demos || return 1
	mv "$_builddir"/demos "$subpkgdir"/usr/share/doc/"$pkgname"/ || return 1
}

docs() {
	# Put the documentation files into a seperate package
	mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname"/docs || return 1
	mv "$_builddir"/docs "$subpkgdir"/usr/share/doc/"$pkgname"/ || return 1
}

md5sums="6bbfb328fe816c3d3652ba6528cc8b4c  paramiko-1.15.2.tar.gz"
sha256sums="4f56a671a3eecbb76e6143e6e4ca007d503a39aa79aa9e14ade667fa53fd6e55  paramiko-1.15.2.tar.gz"
sha512sums="c8fe6c5e4c99ac0922c08f3c006b55852f54c3043eb3ddae5b6e5fba0592bf08b10ec399ec6865bbe84c759c8a15a00722247409b666f42e93b18bfd658158cd  paramiko-1.15.2.tar.gz"