# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-paramiko _pkgname=paramiko pkgver=2.4.2 pkgrel=2 pkgdesc="An SSH2 protocol library for Python3" url="https://github.com/paramiko/paramiko/" arch="noarch" license="LGPL-2.0-or-later" options="!check" depends="python3 py3-asn1 py3-cryptography py3-bcrypt py3-pynacl" makedepends="py3-setuptools" subpackages="$pkgname-doc $pkgname-demos" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" replaces="py-paramiko" # Backwards compatibility provides="py-paramiko=$pkgver-r$pkgrel" # Backwards compatibility build() { cd "$builddir" python3 setup.py build } package() { cd "$builddir" python3 setup.py install --prefix=/usr --root="$pkgdir" } demos() { depends="$pkgname=$pkgver-r$pkgrel" pkgdesc="$pkgdesc (demos)" mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname"/demos mv "$builddir"/demos "$subpkgdir"/usr/share/doc/"$pkgname"/ } doc() { depends="" pkgdesc="$pkgdesc (documentation)" mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname"/docs mv "$builddir"/docs "$subpkgdir"/usr/share/doc/"$pkgname"/ } sha512sums="ebf277022ff0e26316cc1d3fc8d37918fb4b13f819e11a38dbafc7a77a1a4faf2d0b58ef60a582b9c66fb0650a453ae93ab405c04298fbaea83118bdf9a87906 paramiko-2.4.2.tar.gz"