Skip to content

Commit

Permalink
Merge pull request #173 from akki42/freeoffice-plugin
Browse files Browse the repository at this point in the history
Plugin for SoftMaker Freeoffice
  • Loading branch information
asdil12 committed Jan 23, 2024
2 parents 3e44ae6 + 80e1d14 commit f558f46
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 f558f46

Please sign in to comment.