aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-07-19 10:22:51 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-07-19 10:22:51 +0000
commit2bfb0937f0d87c017b3a3d883d73bee4deb7b4c7 (patch)
tree8148c8d18f9c1e12accc6530a188b878cea5d15a /testing
parent9cda554d6be57425280ce78b7c085fffb86e7706 (diff)
downloadaports-2bfb0937f0d87c017b3a3d883d73bee4deb7b4c7.tar.bz2
aports-2bfb0937f0d87c017b3a3d883d73bee4deb7b4c7.tar.xz
testing/py-scp: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/py-scp/APKBUILD54
1 files changed, 54 insertions, 0 deletions
diff --git a/testing/py-scp/APKBUILD b/testing/py-scp/APKBUILD
new file mode 100644
index 0000000000..cc739732c4
--- /dev/null
+++ b/testing/py-scp/APKBUILD
@@ -0,0 +1,54 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=py-scp
+_pkgname=${pkgname/py-/}.py
+pkgver=0.10.2
+pkgrel=0
+pkgdesc="scp module for paramiko"
+url="https://github.com/jbardin/scp.py"
+arch="noarch"
+license="GPL"
+depends="py-paramiko py-six py-cffi py-idna py-asn1crypto py-cparser"
+makedepends="python2-dev py-setuptools python3-dev"
+subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2"
+source="$pkgname-$pkgver.tar.gz::https://github.com/jbardin/scp.py/archive/v$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+check() {
+ cd "$builddir"
+ python2 setup.py check
+ python3 setup.py check
+}
+
+
+build() {
+ cd "$builddir"
+ python2 setup.py build
+ python3 setup.py build
+}
+
+package() {
+ mkdir -p "$pkgdir"
+}
+
+_py() {
+ local python="$1"
+ pkgdesc="$pkgdesc (for $python)"
+ depends="$depends $python"
+ install_if="$pkgname=$pkgver-r$pkgrel $python"
+
+ cd "$builddir"
+ $python setup.py install --prefix=/usr --root="$subpkgdir"
+}
+
+_py2() {
+ replaces="$pkgname"
+ depends="${depends//py-/py2-}"
+ _py python2
+}
+
+_py3() {
+ depends="${depends//py-/py3-}"
+ _py python3
+}
+sha512sums="40a6badf5d677bc601ef67ee335e2fea7abc6241896f6334e27c5fca633084cdd80a98c0b0861af6f25c7735db165bcafd3e9d5f52dcd981cb4920495551a791 py-scp-0.10.2.tar.gz"