maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Community (https://talk.maemo.org/forumdisplay.php?f=16)
-   -   How do I create an installer for dictionary databases that will later be submitted to repositories? (https://talk.maemo.org/showthread.php?t=39057)

Bec 2010-01-02 14:08

How do I create an installer for dictionary databases that will later be submitted to repositories?
 
The QStarDict is a very nice dictionary available in the extras-devel repository it is based on StarDict and can use almost any dictionary library available after it has been converted.

The dictionary libraries are to be put in:
/usr/share/stardict/dic or /home/user/.stardict/dic

As it is not possible for one to find all the libraries, regarding a domain (such as a speciffic language, law or medicine), in one place, I decided to look for medical dictionaries and convert them if necessary for stardict.

A dictionary library consists of:

*.dict.dz
or .dict
*.ifo
*.idx
*.syn
(most dictionaries)

I am using Linux Mint "Helena" and stardict-tools for conversion when it is needed.
My goal is to create a comprehensive medical database for Qstardict that can easily be accessed from the repositories.

As I am quite new to linux I'd appreciate a step by step explanation of how to create the .deb package and which of the available folders you recommend for installing and why.

Thanks.

debernardis 2010-01-02 14:13

Re: How do I create an installer for dictionary databases that will later be submitted to repositories?
 
I'd go with the folder under /home/user, because it's already on the big vfat partition, so there's no need to optify the deb package. I have my stardict dictionaries there.

@SR 2010-01-02 14:22

Re: How do I create an installer for dictionary databases that will later be submitted to repositories?
 
You will need SKD for building .deb packages. You can read an instruction on building package at: http://wiki.maemo.org/Documentation/...eveloper_Guide
You can also refer to https://wiki.ubuntu.com/PackagingGuide/Complete there is a lot of useful information on building .deb packages.
After that see http://wiki.maemo.org/Uploading_to_Extras-devel for instructions on how to upload your package to repository.
I recommend using /home/user/.stardict/dic as it is on 32Gb card. /usr/share/stardict/dic is in internal 256Mb memory.
You can also add your own path to dictionaries at stardict plugin configuration.

jebba 2010-01-02 19:22

Re: How do I create an installer for dictionary databases that will later be submitted to repositories?
 
.debs should not install to the user's home dir.

It should install to qstardict's default dict directory in /opt

@SR 2010-01-02 23:10

Re: How do I create an installer for dictionary databases that will later be submitted to repositories?
 
There is no restriction for using /home/user for programs. I agree that it would be wrong for desktop as there may be a lot of users. But I think it's ok for mobile phone. /opt is in /home/opt anyway.
I will add a path pointing to dic folder by default in /opt's qstardict folder in next version.

jebba 2010-01-03 00:23

Re: How do I create an installer for dictionary databases that will later be submitted to repositories?
 
Quote:

Originally Posted by @SR (Post 449844)
I recommend using /home/user/.stardict/dic as it is on 32Gb card.

Note, this is the 2G partition, not the 32G partition. The 32G partition is /home/user/MyDocs. The /home/user/MyDocs partition is VFAT as well, so symlinks are not possible there (well you can point to it, but it can't contain symlinks).

sorodoros 2010-01-04 21:57

Re: How do I create an installer for dictionary databases that will later be submitted to repositories?
 
I have 3 dictionary files (.dz , .dict, .ifo) Where exactly do I put them? I cannot find these folders using native file manager): /usr/share/stardict/dic or /home/user/.stardict/dic. TIA.

Bec 2010-01-04 22:23

Re: How do I create an installer for dictionary databases that will later be submitted to repositories?
 
Openssh on the phone and winscp on the pc via a router or try using pidgin or mytube.


All times are GMT. The time now is 02:12.

vBulletin® Version 3.8.8