Date: Friday, October 9, 2020 @ 04:45:58 Author: yan12125 Revision: 722265
python-pproxy: checkdepends of upcoming python-httpcore [1] https://github.com/encode/httpcore/pull/199 Added: python-pproxy/ python-pproxy/repos/ python-pproxy/trunk/ python-pproxy/trunk/PKGBUILD ----------+ PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) Added: python-pproxy/trunk/PKGBUILD =================================================================== --- python-pproxy/trunk/PKGBUILD (rev 0) +++ python-pproxy/trunk/PKGBUILD 2020-10-09 04:45:58 UTC (rev 722265) @@ -0,0 +1,33 @@ +# Maintainer: Chih-Hsuan Yen <yan12...@archlinux.org> + +pkgname=python-pproxy +pkgver=2.3.7 +# The commit that bumps version. Upstream does not use git tags [1], and the +# source tarball on PyPI does not include LICENSE +# https://github.com/qwj/python-proxy/issues/91 +_commit=7fccf8dd62204f34b0aa3a70fc568fd6ddff7728 +pkgrel=1 +pkgdesc="Versatile TCP/UDP asynchronous tunnel proxy implemented in Python 3 asyncio" +arch=('any') +url="https://github.com/qwj/python-proxy" +license=('MIT') +depends=(python) +makedepends=(python-setuptools) +optdepends=( + 'python-pycryptodome: accelerated cipher operations' + 'python-uvloop: faster asynchronous operations' + 'python-daemon: run the server as a daemon' +) +source=(https://github.com/qwj/python-proxy/archive/$_commit/pproxy-$_commit.tar.gz) +sha256sums=('c3ab3d36e18611ff0f4eb50ac60de9f1e86124829e970ec4109594521f8d425e') + +build() { + cd python-proxy-$_commit + python setup.py build +} + +package() { + cd python-proxy-$_commit + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname +}