blob: 2c2b11dddbb794836a467e9f97b7d720ba672132 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=mitmproxy
pkgver=0.17.1
pkgrel=0
pkgdesc="An interactive SSL-capable intercepting HTTP proxy"
url="http://www.mitmproxy.org/"
arch="noarch"
license="MIT"
depends="python py-netlib py-flask py-urwid py-$pkgname py-itsdangerous"
depends_dev=""
makedepends="python2-dev py-setuptools "
install=""
subpackages="py-$pkgname:py"
source="$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
python setup.py build || return 1
}
package() {
cd "$_builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
py() {
cd "$_builddir"
pkgdesc="$pkgname python bindings"
install -d "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
}
md5sums="fe85b8232f0f26e575c70daceb94de46 mitmproxy-0.17.1.tar.gz"
sha256sums="5f9605f0703f03eca21173067161332eeb0e70a22a67aa3b329dc4a203f4dadc mitmproxy-0.17.1.tar.gz"
sha512sums="5e53cfb46e4710674a0a0df5ee0a39ab2766cfab7aace677a6abfa3f8dbd91509759f25bc58773d76323985c37707dcf9d915d33275bd4e76e0374c601fe7ad2 mitmproxy-0.17.1.tar.gz"
|