Date: Saturday, December 5, 2020 @ 15:42:46 Author: yan12125 Revision: 770906
upgpkg: python-pproxy 2.5-1; switched to PyPI tarball Upstream improved the sdist [1] [1] https://github.com/qwj/python-proxy/issues/91 Modified: python-pproxy/trunk/PKGBUILD ----------+ PKGBUILD | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-12-05 15:31:06 UTC (rev 770905) +++ PKGBUILD 2020-12-05 15:42:46 UTC (rev 770906) @@ -1,11 +1,7 @@ # Maintainer: Chih-Hsuan Yen <[email protected]> pkgname=python-pproxy -pkgver=2.4.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=c8704c2ff65646efcc02debd344f18891e6bac2d +pkgver=2.5 pkgrel=1 pkgdesc="Versatile TCP/UDP asynchronous tunnel proxy implemented in Python 3 asyncio" arch=('any') @@ -12,22 +8,22 @@ url="https://github.com/qwj/python-proxy" license=('MIT') depends=(python) -makedepends=(python-setuptools) +makedepends=(python-setuptools python-setuptools-scm) 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=('7971f9b48c6fa542110f22873df0e998439b26f0a711caf67a92bc1dbf6b6e94') +source=(https://files.pythonhosted.org/packages/source/p/pproxy/pproxy-${pkgver}.tar.gz) +sha256sums=('3f96e302f65fa5f653289edc98ac43d3e58bda135e6237a438911bcb3a8c979f') build() { - cd python-proxy-$_commit + cd pproxy-$pkgver python setup.py build } package() { - cd python-proxy-$_commit + cd pproxy-$pkgver python setup.py install --root="$pkgdir" --optimize=1 --skip-build install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname }
