diff options
author | Joaquim Monteiro | 2024-04-22 05:12:56 +0100 |
---|---|---|
committer | Joaquim Monteiro | 2024-04-22 05:46:55 +0100 |
commit | 5cacdee7f7137ac8e0d2394c0a2bfdf7fab92ba4 (patch) | |
tree | 83d324d808f709b09c250c83db217f65a0d5a739 | |
parent | 9c332d5145bd923e663fce89376b11e60d4e5751 (diff) | |
download | aur-python-aiohttp-proxy.tar.gz |
Migrate to standards based build and rebuild for Python 3.12
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 14 |
2 files changed, 15 insertions, 7 deletions
@@ -1,15 +1,17 @@ pkgbase = python-aiohttp-proxy pkgdesc = SOCKS proxy connector for aiohttp. HTTP, HTTPS, SOCKS4(a) and SOCKS5(h) proxies are supported. pkgver = 0.1.2 - pkgrel = 1 + pkgrel = 2 url = https://github.com/Skactor/aiohttp-proxy arch = any - license = Apache + license = Apache-2.0 + makedepends = python-build + makedepends = python-installer makedepends = python-setuptools + makedepends = python-wheel depends = python depends = python-aiohttp source = aiohttp-proxy-0.1.2::git+https://github.com/Skactor/aiohttp-proxy#commit=8810ab6c0daf9f537f2c2bb1ce049fbdae7b9f6e sha512sums = SKIP pkgname = python-aiohttp-proxy - @@ -3,19 +3,25 @@ _commit="8810ab6c0daf9f537f2c2bb1ce049fbdae7b9f6e" pkgname=python-aiohttp-proxy pkgver=0.1.2 -pkgrel=1 +pkgrel=2 pkgdesc="SOCKS proxy connector for aiohttp. HTTP, HTTPS, SOCKS4(a) and SOCKS5(h) proxies are supported." arch=(any) url="https://github.com/Skactor/aiohttp-proxy" -license=("Apache") +license=("Apache-2.0") depends=("python" "python-aiohttp") -makedepends=("python-setuptools") +makedepends=("python-build" "python-installer" "python-setuptools" "python-wheel") source=("aiohttp-proxy-${pkgver}::git+https://github.com/Skactor/aiohttp-proxy#commit=${_commit}") sha512sums=("SKIP") +build() { + cd "aiohttp-proxy-${pkgver}" + [[ -d dist/ ]] && rm -f dist/*.whl + python -m build --wheel --no-isolation +} + package() { cd "aiohttp-proxy-${pkgver}" - python setup.py install --root="$pkgdir/" --optimize=1 + python -m installer --destdir="$pkgdir" dist/*.whl } |