Ubuntu – creating a deb package to install extension

aptdebpackage-management

I want to create a deb package that will install this and that extensions.

I want to automate the steps of adding the extension to LibreOffice and Firefox. How do I create a package for this?

Best Answer

Creating packages is relatively straight forward. You essentially create a tarball, which could be unpacked at the root of your filesystem (the parallel directory structures), but in addition there is a debian folder, which contains scripts which can be run during the process.
I'm assuming you knew this, so I'm not sure exactly which bit of the process of creating a package, you're unclear on.

https://wiki.debian.org/HowToPackageForDebian

Will give you chapter and verse on creating the package

http://kb.mozillazine.org/Installing_extensions

Says putting .xpi files in a certain directory will cause firefox to install them on next startup

https://forum.openoffice.org/en/forum/viewtopic.php?f=47&t=804

Talks about using unopkg to install libreoffice packages from the command line.

If you want hired consultancy to do the grunt work for you, that's a different matter ;-)