From 612996385d7c8d7eb1654e8df5b2d154540bbf8b Mon Sep 17 00:00:00 2001 From: DragonGhost7 Date: Sat, 16 Oct 2021 00:07:10 -0400 Subject: [PATCH 1/8] New package: python3-eventlet-0.33.0 --- srcpkgs/python3-eventlet/template | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 srcpkgs/python3-eventlet/template diff --git a/srcpkgs/python3-eventlet/template b/srcpkgs/python3-eventlet/template new file mode 100644 index 000000000000..e38a958e5566 --- /dev/null +++ b/srcpkgs/python3-eventlet/template @@ -0,0 +1,22 @@ +# Template file for 'python3-eventlet' +pkgname=python3-eventlet +version=0.33.0 +revision=1 +wrksrc="eventlet-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools python3-Sphinx" +depends="python3 python3-dnspython python3-greenlet python3-httplib2 + python3-psycopg2 python3-openssl python3-pyzmq python3-six" +short_desc="Highly concurrent networking library" +maintainer="DragonGhost7 " +license="MIT" +homepage="https://github.com/eventlet/eventlet" +distfiles="${homepage}/archive/v${version}/${wrksrc}.tar.gz" +checksum=6fcc8b7d5da3127fd81e9370d96e3cc78c7525a055770593b12eea1c72c1b36b +make_check=no +#https://github.com/nose-devs/nose/issues/1099 +#as of 3.9 python3-nose is no longer maintained, and is not working, so since it is required for the test, we cant really run it. + +post_install() { + vlicense LICENSE +} From ea02cf2fde1664f65fa5ce3a6b99662f81b8826b Mon Sep 17 00:00:00 2001 From: DragonGhost7 Date: Sat, 16 Oct 2021 01:02:34 -0400 Subject: [PATCH 2/8] New package: python3-bidict-0.21.4 --- srcpkgs/python3-bidict/template | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 srcpkgs/python3-bidict/template diff --git a/srcpkgs/python3-bidict/template b/srcpkgs/python3-bidict/template new file mode 100644 index 000000000000..f132678de13b --- /dev/null +++ b/srcpkgs/python3-bidict/template @@ -0,0 +1,22 @@ +# Template file for 'python3-bidict' +pkgname=python3-bidict +version=0.21.4 +revision=1 +wrksrc="bidict-${version}" +build_style=python3-module +make_check_target=tests +hostmakedepends="python3-setuptools" +depends="python3" +checkdepends="python3-hypothesis python3-py-cpuinfo python3-pytest python3-Sphinx" +short_desc="Bidirectional mapping library for Python" +maintainer="DragonGhost7 " +license="MPL-2.0" +homepage="https://github.com/jab/bidict" +distfiles="https://github.com/jab/bidict/archive/refs/tags/v${version}.tar.gz" +checksum=95f854ae5466949915eebc782c7657bfba70207446e5e2308cc339cc97e05dac + +post_extract() { + sed -e '/--benchmark-columns=mean,stddev,outliers/,+3d' -i pytest.ini + rm tests/test_benchmark.py + # void linux doesnt have pytest benchmark tool +} From c6622583fa299ad31bde96fb167638529427cc1c Mon Sep 17 00:00:00 2001 From: DragonGhost7 Date: Sat, 16 Oct 2021 01:25:06 -0400 Subject: [PATCH 3/8] New package: python3-engineio-4.3.0 --- srcpkgs/python3-engineio/template | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 srcpkgs/python3-engineio/template diff --git a/srcpkgs/python3-engineio/template b/srcpkgs/python3-engineio/template new file mode 100644 index 000000000000..7697e392ec34 --- /dev/null +++ b/srcpkgs/python3-engineio/template @@ -0,0 +1,21 @@ +# Template file for 'python3-engineio' +pkgname=python3-engineio +version=4.3.0 +revision=1 +wrksrc="python-engineio-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools python3-Sphinx" +depends="python3 python3-six python3-urllib3 python3-websocket-client + python3-websockets python3-aiohttp python3-eventlet python3-gevent + python3-tornado" +checkdepends="python3-pytest python3-mock iana-etc ${depends}" +short_desc="Python implementation of the Engine.IO realtime server" +maintainer="DragonGhost7 " +license="MIT" +homepage="https://github.com/miguelgrinberg/python-engineio" +distfiles="https://github.com/miguelgrinberg/python-engineio/archive/v${version}/${wrksrc}.tar.gz" +checksum=40a08487f9aabb01f35a38e07fdb4cdada0e78f7291f6919326d11b9929abbc5 + +post_install() { + vlicense LICENSE +} From 0943001777f3f9b17c969d415676a2f35c1fd620 Mon Sep 17 00:00:00 2001 From: DragonGhost7 Date: Sat, 16 Oct 2021 01:50:14 -0400 Subject: [PATCH 4/8] New package: python3-socketio-5.5.0 --- srcpkgs/python3-socketio/template | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 srcpkgs/python3-socketio/template diff --git a/srcpkgs/python3-socketio/template b/srcpkgs/python3-socketio/template new file mode 100644 index 000000000000..ea5138f62889 --- /dev/null +++ b/srcpkgs/python3-socketio/template @@ -0,0 +1,20 @@ +# Template file for 'python3-socketio' +pkgname=python3-socketio +version=5.5.0 +revision=1 +wrksrc="python-socketio-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools python3-Sphinx python3-pip python3-wheel" +depends="python3 python3-tornado python3-msgpack python3-six python3-bidict +python3-engineio" +checkdepends="python3-pytest python3-mock iana-etc ${depends}" +short_desc="Python implementation of the Socket.IO realtime server" +maintainer="DragonGhost7 " +license="MIT" +homepage="https://github.com/miguelgrinberg/python-socketio" +distfiles="${homepage}/archive/v${version}/${wrksrc}.tar.gz" +checksum=1e870adfd0278d8e8fe450cdef327f95aa3e80b18c11435b5d0ba9fed7caf312 + +post_install() { + vlicense LICENSE +} From 7d6c9d8bd5e41ab59ff2d7dce9868148998b1871 Mon Sep 17 00:00:00 2001 From: DragonGhost7 Date: Sat, 16 Oct 2021 01:52:52 -0400 Subject: [PATCH 5/8] New package: python3-Flask-SocketIO-5.1.1 --- srcpkgs/python3-Flask-SocketIO/template | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 srcpkgs/python3-Flask-SocketIO/template diff --git a/srcpkgs/python3-Flask-SocketIO/template b/srcpkgs/python3-Flask-SocketIO/template new file mode 100644 index 000000000000..ed8cbd213509 --- /dev/null +++ b/srcpkgs/python3-Flask-SocketIO/template @@ -0,0 +1,26 @@ +# Template file for 'python3-Flask-SocketIO' +pkgname=python3-Flask-SocketIO +version=5.1.1 +revision=1 +wrksrc=Flask-SocketIO-${version} +build_style=python3-module +hostmakedepends="python3-setuptools python3-Sphinx" +depends="python3-Flask python3-socketio python3-eventlet" +checkdepends="python3-pytest python3-coverage iana-etc ${depends}" +short_desc="Socket.IO integration for Flask applications" +maintainer="DragonGhost7 " +license="MIT" +homepage="https://github.com/miguelgrinberg/Flask-SocketIO" +distfiles="https://github.com/miguelgrinberg/Flask-SocketIO/archive/refs/tags/v${version}.tar.gz" +checksum=b374a0918d61c0cb0ccad50324e41b6c11468026dba776d212ad775777ad4fe5 + +do_check() { + ln -s src/flask_socketio . +# flask_socketio source is inside a src/ directory which makes it inaccesible for some reason to the pytest + py.test test_socketio.py + rm -r flask_socketio +} + +post_install() { + vlicense LICENSE +} From 41ca874b3b4c4323509b0fded393e078129eb11a Mon Sep 17 00:00:00 2001 From: DragonGhost7 Date: Mon, 29 Nov 2021 21:29:03 -0500 Subject: [PATCH 6/8] New package: python3-cepa-1.8.3 --- srcpkgs/python3-cepa/template | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 srcpkgs/python3-cepa/template diff --git a/srcpkgs/python3-cepa/template b/srcpkgs/python3-cepa/template new file mode 100644 index 000000000000..93b14d10dc61 --- /dev/null +++ b/srcpkgs/python3-cepa/template @@ -0,0 +1,14 @@ +# Template file for 'python3-cepa' +pkgname=python3-cepa +version=1.8.3 +revision=1 +wrksrc="cepa-${version}" +build_style=python3-module +hostmakedepends="python3-devel" +depends="python3-cryptography" +short_desc="Python controller library for Tor, onionshare fork" +maintainer="DragonGhost7 " +license="LGPL-3.0-or-later" +homepage="https://github.com/onionshare/cepa" +distfiles="https://github.com/onionshare/cepa/archive/refs/tags/${version}.tar.gz" +checksum=d9fc0489ad654c5f2dcee1a689c2f1a431fbafbe10559860c36493f8d2443a2b From 3add96f5d3ac216f53a0cc7d5368205a205dcd6e Mon Sep 17 00:00:00 2001 From: DragonGhost7 Date: Sat, 16 Oct 2021 01:58:22 -0400 Subject: [PATCH 7/8] New package: onionshare-cli-2.4_1 --- srcpkgs/onionshare-cli/template | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 srcpkgs/onionshare-cli/template diff --git a/srcpkgs/onionshare-cli/template b/srcpkgs/onionshare-cli/template new file mode 100644 index 000000000000..aea963437858 --- /dev/null +++ b/srcpkgs/onionshare-cli/template @@ -0,0 +1,21 @@ +# Template file for 'onionshare-cli' +pkgname=onionshare-cli +#TO BE UPDATED TOGETHER WITH onionshare-desktop +version=2.4 +revision=1 +wrksrc="onionshare-${version}" +build_style=python3-module +pycompile_dirs="/usr/share/nautilus-python/extensions" +hostmakedepends="python3-setuptools" +depends="python3-Flask-HTTPAuth python3-Flask-SocketIO python3-pycryptodome python3-PyQt5 + python3-pysocks python3-requests python3-pyside2 python3-psutil python3-Unidecode python3-colorama python3-cepa python3-pynacl tor" +checkdepends="python3-pytest iana-etc ${depends}" +short_desc="Share files anonymously and securely" +maintainer="DragonGhost7 " +license="GPL-3.0-or-later" +homepage="https://onionshare.org/" +changelog="https://raw.githubusercontent.com/micahflee/onionshare/develop/CHANGELOG.md" +distfiles="https://github.com/micahflee/onionshare/archive/v${version}.tar.gz" +checksum=9d82744ec930a280cf036e5e7dfab817a37866e927e5a72bdd3e13bd9b9c7b4a + +build_wrksrc=cli From c655b5736d394d1bbc0f4d9f124e390c7553b28c Mon Sep 17 00:00:00 2001 From: DragonGhost7 Date: Sat, 16 Oct 2021 01:58:32 -0400 Subject: [PATCH 8/8] New package: onionshare-desktop-2.4_1 --- srcpkgs/onionshare-desktop/template | 35 +++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 srcpkgs/onionshare-desktop/template diff --git a/srcpkgs/onionshare-desktop/template b/srcpkgs/onionshare-desktop/template new file mode 100644 index 000000000000..5958eda1b28d --- /dev/null +++ b/srcpkgs/onionshare-desktop/template @@ -0,0 +1,35 @@ +# Template file for 'onionshare-desktop' +pkgname=onionshare-desktop +#TO BE UPDATED TOGETHER WITH onionshare-cli +version=2.4 +revision=1 +wrksrc="onionshare-${version}" +build_style=python3-module +pycompile_dirs="/usr/share/nautilus-python/extensions" +hostmakedepends="python3-setuptools" +depends="python3-Flask-HTTPAuth python3-Flask-SocketIO python3-pycryptodome python3-PyQt5 + python3-pysocks python3-requests onionshare-cli python3-pyside2 python3-cepa python3-qrcode tor" +checkdepends="python3-pytest python3-pytest-qt iana-etc xvfb-run ${depends}" +short_desc="Share files anonymously and securely" +maintainer="DragonGhost7 " +license="GPL-3.0-or-later" +homepage="https://onionshare.org/" +changelog="https://raw.githubusercontent.com/micahflee/onionshare/develop/CHANGELOG.md" +distfiles="https://github.com/micahflee/onionshare/archive/v${version}.tar.gz" +checksum=9d82744ec930a280cf036e5e7dfab817a37866e927e5a72bdd3e13bd9b9c7b4a + +build_wrksrc=desktop/src + +do_check() { + ln -s ../tests . + xvfb-run tests/run.sh + rm -r tests +} + +post_install() { + vmkdir usr/share/applications + vinstall org.onionshare.OnionShare.desktop 644 usr/share/applications/ + + vmkdir usr/share/icons/hicolor/scalable/apps + vinstall org.onionshare.OnionShare.svg 644 usr/share/icons/hicolor/scalable/apps/ +}