From c645b8cf44c78d23752084085188d6c02c8dc030 Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Thu, 5 Aug 2021 23:38:19 +0200 Subject: [PATCH 1/3] New package: python3-prawcore-2.3.0 --- srcpkgs/python3-prawcore/template | 22 ++++++++++++++++++++++ 1 file changed, 22 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..2b7f39770ea4 --- /dev/null +++ b/srcpkgs/python3-prawcore/template @@ -0,0 +1,22 @@ +# Template file for 'python3-prawcore' +pkgname=python3-prawcore +version=2.3.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="Michal Vasilek " +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=2ea9e34c02c75ca6d818a497f8854d39cb5f02342b98fced28aaa5ea84abbc5f +# check needs python3-betamax, python3-betamax-matches, +# python3-betamax-serializers and python3-textfixtures which are not packaged +make_check=no + +post_install() { + vlicense LICENSE.txt LICENSE +} From 33b1a2e2422cb110222a970119e82e2f0cd1326c Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Thu, 5 Aug 2021 23:23:43 +0200 Subject: [PATCH 2/3] New package: python3-praw-7.4.0 --- srcpkgs/python3-praw/template | 21 +++++++++++++++++++++ 1 file changed, 21 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..98c257fef259 --- /dev/null +++ b/srcpkgs/python3-praw/template @@ -0,0 +1,21 @@ +# Template file for 'python3-praw' +pkgname=python3-praw +version=7.4.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="Michal Vasilek " +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=da0f97a40fa38835605f3b380240e241f431f5f760c5817e5f0b25c02b8035cb +# check needs python3-betamax and python3-betamax-matches which are not packaged +make_check=no + +post_install() { + vlicense LICENSE.txt LICENSE +} From 4039e6dfcf4dea9aa181df733a4150e14342669a Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Thu, 5 Aug 2021 23:28:08 +0200 Subject: [PATCH 3/3] New package: giara-0.3 --- srcpkgs/giara/patches/fix-login.patch | 15 +++++++++++++++ srcpkgs/giara/template | 15 +++++++++++++++ 2 files changed, 30 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..fd70d3e1c63c --- /dev/null +++ b/srcpkgs/giara/patches/fix-login.patch @@ -0,0 +1,15 @@ +upstream: yes + +--- 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) + diff --git a/srcpkgs/giara/template b/srcpkgs/giara/template new file mode 100644 index 000000000000..726d5bd9e99d --- /dev/null +++ b/srcpkgs/giara/template @@ -0,0 +1,15 @@ +# 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="libhandy1-devel" +depends="python3-BeautifulSoup4 python3-cairo python3-dateutil python3-gobject + python3-mistune python3-Pillow python3-praw gtksourceview4 webkit2gtk libhandy1" +short_desc="Reddit client for GNOME" +maintainer="Michal Vasilek " +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