diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-08-02 13:30:41 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-08-02 13:30:41 -0300 |
commit | 5f02c44b6b79c1e69e78356aa6a02b9238101918 (patch) | |
tree | ebfb88b1d04826ef826f491b6920c6699a6f1045 /testing/mitmproxy | |
parent | 49795012a7b4d7927028b87fd7ac7d2bd4034adb (diff) | |
download | aports-5f02c44b6b79c1e69e78356aa6a02b9238101918.tar.bz2 aports-5f02c44b6b79c1e69e78356aa6a02b9238101918.tar.xz |
testing/mitmproxy: switch to py3
Diffstat (limited to 'testing/mitmproxy')
-rw-r--r-- | testing/mitmproxy/APKBUILD | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/testing/mitmproxy/APKBUILD b/testing/mitmproxy/APKBUILD index 7dfd9da7fd..89abb3f0b3 100644 --- a/testing/mitmproxy/APKBUILD +++ b/testing/mitmproxy/APKBUILD @@ -2,30 +2,27 @@ # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> pkgname=mitmproxy pkgver=0.18.2 -pkgrel=1 +pkgrel=2 pkgdesc="An interactive SSL-capable intercepting HTTP proxy" url="https://www.mitmproxy.org/" arch="noarch" license="MIT" -depends="python2 py-netlib py-flask py-urwid py-$pkgname py-itsdangerous" -makedepends="python2-dev py-setuptools" -subpackages="py-$pkgname:py" +depends="python3 py3-flask py3-urwid py3-$pkgname py3-itsdangerous" +makedepends="py3-setuptools" +subpackages="py3-$pkgname:_py" source="$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz" -builddir="$srcdir/$pkgname-$pkgver" build() { - cd "$builddir" - python2 setup.py build || return 1 + python3 setup.py build } package() { - cd "$builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 + python3 setup.py install --prefix=/usr --root="$pkgdir" } -py() { +_py() { cd "$builddir" - pkgdesc="$pkgname python bindings" + pkgdesc="$pkgname python3 bindings" install -d "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/ } |