Skip to content

Commit

Permalink
Add Plugin for SoftMaker Freeoffice
Browse files Browse the repository at this point in the history
Free, but not oss alternative Office suite - see https://www.freeoffice.com/
  • Loading branch information
akki42 authored and asdil12 committed Jan 23, 2024
1 parent 3e44ae6 commit 80e1d14
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions opi/plugins/freeoffice.py
Original file line number Diff line number Diff line change
@@ -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')

0 comments on commit 80e1d14

Please sign in to comment.