From 80e1d148d7736de34ae6661857e8cb85e1cbf216 Mon Sep 17 00:00:00 2001 From: akki42 Date: Mon, 22 Jan 2024 15:46:32 +0100 Subject: [PATCH] Add Plugin for SoftMaker Freeoffice Free, but not oss alternative Office suite - see https://www.freeoffice.com/ --- opi/plugins/freeoffice.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 opi/plugins/freeoffice.py diff --git a/opi/plugins/freeoffice.py b/opi/plugins/freeoffice.py new file mode 100644 index 0000000..272121a --- /dev/null +++ b/opi/plugins/freeoffice.py @@ -0,0 +1,22 @@ +import opi +from opi.plugins import BasePlugin + +class SoftMakerFreeOffice(BasePlugin): + main_query = 'freeoffice' + description = 'Office suite from SoftMaker (See OSS alternative libreoffice)' + queries = ['freeoffice'] + + @classmethod + def run(cls, query): + if not opi.ask_yes_or_no('Do you want to install FreeOffice from SoftMaker repository?'): + return + + opi.add_repo( + filename = 'SoftMaker', + name = 'SoftMaker', + url = 'https://shop.softmaker.com/repo/rpm', + gpgkey = 'https://shop.softmaker.com/repo/linux-repo-public.key' + ) + + opi.install_packages(['softmaker-freeoffice-2021']) + opi.ask_keep_repo('SoftMaker')