diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-07-02 00:42:39 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-07-03 08:05:59 -0300 |
commit | 58cb7f11c48989f847046e5464803d59d5af1371 (patch) | |
tree | 04125baf7ef9099c3821ab9a15475d1662726315 /testing/py3-scp | |
parent | f6003671a3b2b51e21983f73c3fc78728001dc82 (diff) | |
download | aports-58cb7f11c48989f847046e5464803d59d5af1371.tar.bz2 aports-58cb7f11c48989f847046e5464803d59d5af1371.tar.xz |
testing/py3-scp: rename from py-scp
Diffstat (limited to 'testing/py3-scp')
-rw-r--r-- | testing/py3-scp/APKBUILD | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/testing/py3-scp/APKBUILD b/testing/py3-scp/APKBUILD new file mode 100644 index 0000000000..84e341725b --- /dev/null +++ b/testing/py3-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.13.2 +pkgrel=1 +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="56a83958204c7b38d68c8ca896fbe8de1e2198acc0d0c76524e77218bccbf90c67f460f4bd4c745cde7112147fa1860f63777eaef52134519e226e69cd883cb9 py-scp-0.13.2.tar.gz" |