Date: Monday, April 10, 2023 @ 12:00:32
  Author: felixonmars
Revision: 1444152

archrelease: copy trunk to community-staging-any

Added:
  mitmproxy/repos/community-staging-any/
  mitmproxy/repos/community-staging-any/PKGBUILD
    (from rev 1444151, mitmproxy/trunk/PKGBUILD)

----------+
 PKGBUILD |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

Copied: mitmproxy/repos/community-staging-any/PKGBUILD (from rev 1444151, 
mitmproxy/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-10 12:00:32 UTC (rev 1444152)
@@ -0,0 +1,51 @@
+# Maintainer: Felix Yan <[email protected]>
+# Maintainer: Filipe LaĆ­ns (FFY00) <[email protected]>
+# Contributor: Simon 'ALSimon' Gilliot <[email protected]>
+# Contributor: Olivier Biesmans <olivier at biesmans dot fr>
+# Contributor: Dobroslaw Kijowski
+
+pkgname=mitmproxy
+pkgver=9.0.1
+pkgrel=2
+pkgdesc='SSL-capable man-in-the-middle HTTP proxy'
+arch=('any')
+url='https://mitmproxy.org'
+license=('MIT')
+depends=('python-asgiref' 'python-blinker' 'python-brotli' 'python-certifi' 
'python-cryptography'
+         'python-flask' 'python-h11' 'python-h2' 'python-hyperframe' 
'python-kaitaistruct'
+         'python-ldap3' 'python-mitmproxy-wireguard' 'python-msgpack' 
'python-passlib' 'python-protobuf'
+         'python-pyopenssl' 'python-pyparsing' 'python-pyperclip' 
'python-ruamel-yaml' 'python-setuptools'
+         'python-sortedcontainers' 'python-tornado' 'python-urwid' 
'python-wsproto' 'python-publicsuffix2'
+         'python-zstandard')
+checkdepends=('python-asynctest' 'python-parver' 'python-pytest-runner' 
'python-pytest-asyncio'
+              'python-requests' 'python-hypothesis')
+provides=('pathod')
+conflicts=('pathod')
+replaces=('pathod')
+source=("https://github.com/mitmproxy/mitmproxy/archive/$pkgver/$pkgname-$pkgver.tar.gz";)
+sha512sums=('601d9171f48d93fbc6f002a1dc243c2f358186059e491490ffe5ab7be797e8e622fdb5a9e2fdab10fac7350057f9e9491952527d600477c841c9b5102a045bc1')
+
+prepare() {
+  cd $pkgname-$pkgver
+
+  # Let's remove all the upper bounds
+  sed -e 's/, *<[0-9=.]*//' \
+      -i setup.py
+}
+
+build() {
+  cd $pkgname-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd $pkgname-$pkgver
+  python setup.py pytest --addopts "--deselect 
test/mitmproxy/test_version.py::test_get_version"
+}
+
+package() {
+  cd $pkgname-$pkgver
+  python setup.py install --root="$pkgdir" -O1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}

Reply via email to