aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-paramiko
diff options
context:
space:
mode:
authorBartłomiej Piotrowski <bpiotrowski@alpinelinux.org>2013-05-27 13:01:44 +0200
committerBartłomiej Piotrowski <bpiotrowski@alpinelinux.org>2013-05-27 14:11:05 +0200
commit96146a5191c8faf527193ea473a93b4373a2adfc (patch)
treec247aa74c3e81a09b0a611f3c63c2174b3eaad47 /main/py-paramiko
parentd58f283dc80e364fd6b93c41ce9acf5801a861f7 (diff)
downloadaports-96146a5191c8faf527193ea473a93b4373a2adfc.tar.bz2
aports-96146a5191c8faf527193ea473a93b4373a2adfc.tar.xz
main/py-paramiko: moved from testing
Diffstat (limited to 'main/py-paramiko')
-rw-r--r--main/py-paramiko/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/main/py-paramiko/APKBUILD b/main/py-paramiko/APKBUILD
new file mode 100644
index 0000000000..c851936bf1
--- /dev/null
+++ b/main/py-paramiko/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=py-paramiko
+_pkgname=paramiko
+pkgver=1.9.0
+pkgrel=0
+pkgdesc="SSH2 protocol library for Python"
+url="https://github.com/paramiko/paramiko/"
+arch="noarch"
+license="LGPL2+"
+depends="py-crypto"
+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="b78472021ff6586dd61ad6972032f54f paramiko-1.9.0.tar.gz"
+sha256sums="cb99b74d9c53a23b92803c1c97fdb2bfdab7cd4fea888bd3b6438c127e3b29f5 paramiko-1.9.0.tar.gz"
+sha512sums="2f91b68b8a652aa773d14cded7a5f17cf6d758624f981c68510ee3b1302b64ee9290830440dca1a1000b7974ef9dca4f0acd13d01958433b6f35ae8a13e1c0a2 paramiko-1.9.0.tar.gz"