Date: Sunday, May 7, 2023 @ 11:33:21
Author: arojas
Revision: 1459245
archrelease: copy trunk to community-any
Added:
python-tiny-proxy/repos/
python-tiny-proxy/repos/community-any/
python-tiny-proxy/repos/community-any/PKGBUILD
(from rev 1459244, python-tiny-proxy/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: python-tiny-proxy/repos/community-any/PKGBUILD (from rev 1459244,
python-tiny-proxy/trunk/PKGBUILD)
===================================================================
--- repos/community-any/PKGBUILD (rev 0)
+++ repos/community-any/PKGBUILD 2023-05-07 11:33:21 UTC (rev 1459245)
@@ -0,0 +1,34 @@
+# Maintainer:
+
+_pyname=tiny-proxy
+pkgname=python-$_pyname
+pkgver=0.1.1
+pkgrel=1
+pkgdesc='Simple proxy server (SOCKS4(a), SOCKS5(h), HTTP tunnel)'
+arch=(any)
+url='https://github.com/romis2012/tiny-proxy'
+license=(Apache)
+depends=(python-anyio)
+makedepends=(python-build python-installer python-setuptools python-wheel)
+checkdepends=(python-pytest python-trustme python-aiohttp python-httpx)
+source=(https://github.com/romis2012/tiny-proxy/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('31e2de8780046c824e04ca75fe98e7f2ce0f3b3add263c91530718043b8a869e')
+
+build() {
+ cd $_pyname-$pkgver
+ python -m build --wheel --no-isolation
+}
+
+# Need more AUR dependencies
+#check() {
+# cd $_pyname-$pkgver
+# python -m venv --system-site-packages test-env
+# test-env/bin/python -m installer dist/*.whl
+# test-env/bin/python -m pytest
+#}
+
+package() {
+ cd $_pyname-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname
+}