How to package this extension
Alexander Sack
asac at ubuntu.com
Mon Jun 16 11:43:54 BST 2008
On Fri, Jun 13, 2008 at 09:24:06PM +0300, Heikki Mäntysaari wrote:
> Hi all,
Hi,
>
> I'm trying to package mozvoikko, a Finnish spell-checker extension for
> Firefox 3 and Thunderbird 3 but I don't know how should I package an
> extension like it.
>
> Mozvoikko is written in C++ and spell-checking functionality is
> provided by Voikko (package libvoikko1 in main).
>
> I have to install the following files:
> -mozvoikko.so - all functionality
> -install.rdf
> -chrome.manifest - just an empty file
> My problem is that I don't know where should I install these files.
Have you looked at mozilla-devscripts and the instructions on the wiki
[1]?
If you use mozilla-devscripts you wont need to care about install
locations and so on. the xpi.mk helper will take care of the current
best practices.
What you need to make use of xpi.mk is basically just a script
(build-command) that produces a valid .xpi from your sources in the
top level source directory.
For example, lets say you have a script called build.sh; your
debian/rules would probably look like like [2] with a few modifications:
1. set the MOZ_EXTENSION_PKG variable
2. enable the MOZ_XPI_BUILD_COMMAND feature, like:
MOZ_XPI_BUILD_COMMAND = sh build.sh
[1] - https://wiki.ubuntu.com/MozillaTeam/Firefox3Extensions/Packaging
[2] - http://bazaar.launchpad.net/~mozillateam/firefox-extensions/XPI.TEMPLATE/annotate/asac%40jwsdot.com-20080408104114-qv1h0fr8qew93axs?file_id=rules-20080221120129-aifetlupiq8reqgv-6
- Alexander
More information about the Ubuntu-mozillateam
mailing list