mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-13 03:42:37 +01:00
45 lines
1.5 KiB
Plaintext
45 lines
1.5 KiB
Plaintext
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py-paramiko
|
|
_pkgname=paramiko
|
|
pkgver=1.11.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="a2c55dc04904bd08d984533703177084 paramiko-1.11.0.tar.gz"
|
|
sha256sums="d46fb8af4c4ffca3c55c600c17354c7c149d8c5dcd7cd6395f4fa0ce2deaca87 paramiko-1.11.0.tar.gz"
|
|
sha512sums="1de3a0ddc345b8b7a09bab127338cab77d99a26e012fa4539571731aac8e327021dd92f6008a64ccf84a243c4efae34230c00e6165932100f8ecda614f5d2ec9 paramiko-1.11.0.tar.gz"
|