How to package this extension
Heikki Mäntysaari
heikki.mantysaari at linux.fi
Fri Jun 13 19:24:06 BST 2008
Hi all,
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.
My current solution is to install install.rdf and chrome.manifest in
/usr/share/mozvoikko, mozvoikko.so in /usr/lib/mozvoikko and then
create symlinks /usr/lib/firefox-addons/extensions/{id} ->
/usr/share/mozvoikko and /usr/share/mozvoikko/components ->
/usr/lib/mozvoikko
This solution works well in Firefox and arch-independent files are in
/usr/share and arch-dependent files in /usr/lib. But now I think about
Thunderbird 3. I can't create symlink
/usr/lib/thunderbird-addons/extensions/{id} -> /usr/share/mozvoikko
(user may not have Thunderbird installed), so this is what I have
planned: I'll make 3 packages: mozvoikko, which installs files to
/usr/share/mozvoikko and /usr/lib/mozvoikko, and mozvoikko-firefox
(and mozvoikko-thunderbird when Thunderbird 3 will be released), which
creates symbolic link
/usr/lib/(firefox|thunderbird)-addons/extensions/{id} ->
/usr/share/mozvoikko (maybe all these packages can be created by one
source package).
Is this a good solution (can I create a package which only installs
one symlink) or how should I package this extension?
--
-Heikki Mäntysaari
More information about the Ubuntu-mozillateam
mailing list