From 6d6a7a0be24eba09c3f4cd8229566629bfc3a174 Mon Sep 17 00:00:00 2001 From: Paper Date: Fri, 12 Mar 2021 22:03:31 +0000 Subject: [PATCH 1/3] New package: python3-prawcore-2.0.0 --- srcpkgs/python3-prawcore/template | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 srcpkgs/python3-prawcore/template diff --git a/srcpkgs/python3-prawcore/template b/srcpkgs/python3-prawcore/template new file mode 100644 index 000000000000..1eb18f23ec75 --- /dev/null +++ b/srcpkgs/python3-prawcore/template @@ -0,0 +1,20 @@ +# Template file for 'python3-prawcore' +pkgname=python3-prawcore +version=2.0.0 +revision=1 +wrksrc="prawcore-$version" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-requests" +short_desc="Low-level communication layer for PRAW 4+" +maintainer="Paper " +license="BSD-2-Clause" +homepage="https://github.com/praw-dev/prawcore" +changelog="https://raw.githubusercontent.com/praw-dev/prawcore/master/CHANGES.rst" +distfiles="https://github.com/praw-dev/prawcore/archive/v$version.tar.gz" +checksum=71f216beac824a58413c35ea61aea5bef1c1b90d6ae2a01d9640c6a9b73a0e56 +make_check=no # needs python3-betamax, python3-betamax-matches, python3-betamax-serializers and python3-textfixtures which are not packaged + +post_install() { + vlicense LICENSE.txt LICENSE +} From 802a5de78ce64b8a7b16097aa9b5fd0f56ca8f78 Mon Sep 17 00:00:00 2001 From: Paper Date: Fri, 12 Mar 2021 22:05:04 +0000 Subject: [PATCH 2/3] New package: python3-praw-7.2.0 --- srcpkgs/python3-praw/template | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 srcpkgs/python3-praw/template diff --git a/srcpkgs/python3-praw/template b/srcpkgs/python3-praw/template new file mode 100644 index 000000000000..2ee680954895 --- /dev/null +++ b/srcpkgs/python3-praw/template @@ -0,0 +1,20 @@ +# Template file for 'python3-praw' +pkgname=python3-praw +version=7.2.0 +revision=1 +wrksrc="praw-$version" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-prawcore python3-websocket-client" +short_desc="Python Reddit API Wrapper" +maintainer="Paper " +license="BSD-2-Clause" +homepage="https://github.com/praw-dev/praw/" +changelog="https://raw.githubusercontent.com/praw-dev/praw/master/CHANGES.rst" +distfiles="https://github.com/praw-dev/praw/archive/v$version.tar.gz" +checksum=20804681e7aa4d2a0789663f61f8996a04455dde718ff667fb1800e3db7c8716 +make_check=no # needs python3-betamax and python3-betamax-matches which are not packaged + +post_install() { + vlicense LICENSE.txt LICENSE +} From a19423d4d97d3ebc2b840d163b977ec44f008364 Mon Sep 17 00:00:00 2001 From: Paper Date: Fri, 12 Mar 2021 22:09:44 +0000 Subject: [PATCH 3/3] New package: giara-0.3 --- srcpkgs/giara/patches/fix-login.patch | 28 +++++++++++++++++++++++++++ srcpkgs/giara/template | 16 +++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 srcpkgs/giara/patches/fix-login.patch create mode 100644 srcpkgs/giara/template diff --git a/srcpkgs/giara/patches/fix-login.patch b/srcpkgs/giara/patches/fix-login.patch new file mode 100644 index 000000000000..b68f79b461a3 --- /dev/null +++ b/srcpkgs/giara/patches/fix-login.patch @@ -0,0 +1,28 @@ +https://gitlab.gnome.org/World/giara/-/merge_requests/12 +From f4adc1f52d777cea3331b4acae0c3bdec4d0eb70 Mon Sep 17 00:00:00 2001 +From: Paper +Date: Fri, 12 Mar 2021 21:10:34 +0000 +Subject: [PATCH] fix login by removing everything after # from URL + +--- + giara/__main__.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/giara/__main__.py b/giara/__main__.py +index 10b9ae2..d235332 100644 +--- a/giara/__main__.py ++++ b/giara/__main__.py +@@ -53,8 +53,9 @@ class GApplication(Gtk.Application): + def open(self, app, files, *args): + target = files[0].get_uri() + print(target) ++ code = target.split('=')[-1].split('#')[0] + get_authorized_client( +- reddit=self._unauth_reddit, code=target.split('=')[-1] ++ reddit=self._unauth_reddit, code=code + ) + self.continue_activate(self._unauth_reddit) + +-- +GitLab + diff --git a/srcpkgs/giara/template b/srcpkgs/giara/template new file mode 100644 index 000000000000..28f53be673b6 --- /dev/null +++ b/srcpkgs/giara/template @@ -0,0 +1,16 @@ +# Template file for 'giara' +pkgname=giara +version=0.3 +revision=1 +build_style=meson +hostmakedepends="gobject-introspection python3-setuptools pkg-config glib-devel gettext" +makedepends="gtk+3-devel libhandy1-devel" +depends="python3-BeautifulSoup4 python3-cairo python3-dateutil python3-gobject + python3-mistune python3-Pillow python3-praw gtksourceview4 webkit2gtk" +short_desc="Reddit client for GNOME" +maintainer="Paper " +license="GPL-3.0-or-later" +homepage="https://gitlab.gnome.org/World/giara" +distfiles="https://gitlab.gnome.org/World/giara/-/archive/$version/giara-$version.tar.gz" +checksum=111d9f2aa46c58cf5cfe3e677988a2726701ca7ba1cc94948176d2345d80ff7f +patch_args="-Np1"