From a8d7c6fe2578603fef85c25206faf45cba7fa4c7 Mon Sep 17 00:00:00 2001 From: tibequadorian Date: Wed, 30 Nov 2022 10:53:42 +0100 Subject: [PATCH] gwe: replace libappindicator with libayatana-appindicator --- .../gwe/patches/use-ayatana-appindicator.patch | 15 +++++++++++++++ srcpkgs/gwe/template | 4 ++-- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/gwe/patches/use-ayatana-appindicator.patch diff --git a/srcpkgs/gwe/patches/use-ayatana-appindicator.patch b/srcpkgs/gwe/patches/use-ayatana-appindicator.patch new file mode 100644 index 00000000000..05029c1c775 --- /dev/null +++ b/srcpkgs/gwe/patches/use-ayatana-appindicator.patch @@ -0,0 +1,15 @@ +diff --git a/gwe/view/main_view.py b/gwe/view/main_view.py +index 61c891d..6f573c2 100644 +--- a/gwe/view/main_view.py ++++ b/gwe/view/main_view.py +@@ -31,8 +31,8 @@ from gwe.model.fan_profile import FanProfile + try: # AppIndicator3 may not be installed + import gi + +- gi.require_version('AppIndicator3', '0.1') +- from gi.repository import AppIndicator3 ++ gi.require_version('AyatanaAppIndicator3', '0.1') ++ from gi.repository import AyatanaAppIndicator3 as AppIndicator3 + except (ImportError, ValueError): + AppIndicator3 = None + from gwe.di import MainBuilder diff --git a/srcpkgs/gwe/template b/srcpkgs/gwe/template index f4473200cd6..ce70ed78573 100644 --- a/srcpkgs/gwe/template +++ b/srcpkgs/gwe/template @@ -1,14 +1,14 @@ # Template file for 'gwe' pkgname=gwe version=0.15.2 -revision=3 +revision=4 build_style=meson hostmakedepends="pkg-config meson ninja glib-devel gtk+3-devel python3 python3-devel python3-matplotlib python3-peewee python3-gobject python3-xlib python3-xdg python3-requests python3-rx python3-nvml python3-injector python3-urllib3 python3-six python3-chardet python3-idna python3-xlib python3-numpy python3-parsing python3-cycler python3-dateutil python3-Pillow" makedepends="gobject-introspection appstream-glib" -depends="python3 gobject-introspection libappindicator libdazzle python3-matplotlib +depends="python3 gobject-introspection libayatana-appindicator libdazzle python3-matplotlib python3-peewee python3-gobject python3-xlib python3-xdg python3-requests python3-rx python3-nvml python3-injector python3-urllib3 python3-six python3-chardet python3-idna python3-xlib python3-numpy python3-parsing python3-cycler python3-dateutil python3-Pillow"