diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-07-02 00:45:14 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-07-03 08:05:59 -0300 |
commit | da068f57db55cd931f2d5afc64ba6412be6722a2 (patch) | |
tree | 5c563e3e8a906f03db51aec7dd09e2a3a869f637 /testing/py3-scp | |
parent | 58cb7f11c48989f847046e5464803d59d5af1371 (diff) | |
download | aports-da068f57db55cd931f2d5afc64ba6412be6722a2.tar.bz2 aports-da068f57db55cd931f2d5afc64ba6412be6722a2.tar.xz |
testing/py3-scp: rebuild for python3
Diffstat (limited to 'testing/py3-scp')
-rw-r--r-- | testing/py3-scp/APKBUILD | 48 |
1 files changed, 12 insertions, 36 deletions
diff --git a/testing/py3-scp/APKBUILD b/testing/py3-scp/APKBUILD index 84e341725b..8b32d3afad 100644 --- a/testing/py3-scp/APKBUILD +++ b/testing/py3-scp/APKBUILD @@ -1,54 +1,30 @@ # Contributor: Francesco Colista <fcolista@alpinelinux.org> # Maintainer: Francesco Colista <fcolista@alpinelinux.org> -pkgname=py-scp -_pkgname=${pkgname/py-/}.py +pkgname=py3-scp +_pkgname=scp.py pkgver=0.13.2 -pkgrel=1 +pkgrel=2 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" +license="LGPL-2.1-or-later" +depends="py3-paramiko py3-six py3-cffi py3-idna py3-asn1crypto py3-cparser" +makedepends="py3-setuptools" +source="$pkgname-$pkgver.tar.gz::https://github.com/jbardin/$_pkgname/archive/v$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" +replaces="py-scp" # Backwards compatibility +provides="py-scp=$pkgver-r$pkgrel" # Backwards compatibility + 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 + python3 setup.py install --prefix=/usr --root="$pkgdir" } -sha512sums="56a83958204c7b38d68c8ca896fbe8de1e2198acc0d0c76524e77218bccbf90c67f460f4bd4c745cde7112147fa1860f63777eaef52134519e226e69cd883cb9 py-scp-0.13.2.tar.gz" +sha512sums="56a83958204c7b38d68c8ca896fbe8de1e2198acc0d0c76524e77218bccbf90c67f460f4bd4c745cde7112147fa1860f63777eaef52134519e226e69cd883cb9 py3-scp-0.13.2.tar.gz" |