From 1c4452d497d49709047374151109bf092ec8afe1 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 | 21 +++++++++++++++++++++ 1 file changed, 21 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..18cd7ce6b7e5 --- /dev/null +++ b/srcpkgs/python3-eventlet/template @@ -0,0 +1,21 @@ +# 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 76f7e990b0b2c4ff8a9647de60d6c6a4177e6bb3 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 | 23 +++++++++++++++++++++++ 1 file changed, 23 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..00bf5db60e33 --- /dev/null +++ b/srcpkgs/python3-bidict/template @@ -0,0 +1,23 @@ +# Template file for 'python3-bidict' +pkgname=python3-bidict +version=0.21.4 +revision=1 +wrksrc="bidict-${version}" +build_style=python3-module +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="${homepage}/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 +} + +make_check_target=tests From 3ff745a7359eba2e9f2e53088d8cd0431745482a 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 | 20 ++++++++++++++++++++ 1 file changed, 20 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..0d5115f60828 --- /dev/null +++ b/srcpkgs/python3-engineio/template @@ -0,0 +1,20 @@ +# 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" +makedepends="${depends}" +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="${homepage}/archive/v${version}/${wrksrc}.tar.gz" +checksum=40a08487f9aabb01f35a38e07fdb4cdada0e78f7291f6919326d11b9929abbc5 + +post_install() { + vlicense LICENSE +} From 06363fb0868a208722f83780a684d1535c74e49a 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 | 15 +++++++++++++++ 1 file changed, 15 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..5059ddc6f3d8 --- /dev/null +++ b/srcpkgs/python3-socketio/template @@ -0,0 +1,15 @@ +# 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 From 0d6fa04593d456c3c560b4b6402c79ba3652e4e3 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..4d1f2721eba9 --- /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 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="${homepage}/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 222d305c359dffce2b48fa87db2b650898466386 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..7e0df9dcd791 --- /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/b/}" +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="${homepage}/archive/refs/tags/${version}.tar.gz" +checksum=d9fc0489ad654c5f2dcee1a689c2f1a431fbafbe10559860c36493f8d2443a2b From a93720ac6c810bff8533e407a174f42279f5e0c2 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 | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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..a965d39cfa52 --- /dev/null +++ b/srcpkgs/onionshare-cli/template @@ -0,0 +1,27 @@ +# Template file for 'onionshare-cli' +pkgname=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 python3-pyside2 python3-cepa python3-pynacl tor" +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 + +do_build() { + cd cli + python3 setup.py build ${make_build_args} +} + +do_install() { + cd cli + python3 setup.py install --prefix=/usr --root=${DESTDIR} ${make_install_args} +} From 49ca91dddd2ab82b74321715d434ecde7c711b43 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 | 33 +++++++++++++++++++++++++++++ 1 file changed, 33 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..7c1342d6464e --- /dev/null +++ b/srcpkgs/onionshare-desktop/template @@ -0,0 +1,33 @@ +# Template file for 'onionshare-desktop' +pkgname=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 onionshare-cli python3-pyside2 python3-stem tor" +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 + +do_build() { + cd desktop/src + python3 setup.py build ${make_build_args} +} + +do_install() { + cd desktop/src + python3 setup.py install --prefix=/usr --root=${DESTDIR} ${make_install_args} + + 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/ +}