Reply
Thread Tools
Posts: 19 | Thanked: 0 times | Joined on May 2010
#1
did anyone knw that how to package ur .deb file and make it install most of its file into opt folder? or is there any tutorial about it? u wont pass ovi if ur app din have a opt folder, i dun even knw what is that, i have totally no idea how does it work!!! -__-"
 
Posts: 432 | Thanked: 645 times | Joined on Mar 2009
#2
Hi,

you can find a lot of information in the wiki, some good pages you'll find here and here.

Daniel
 

The Following User Says Thank You to danielwilms For This Useful Post:
Posts: 200 | Thanked: 44 times | Joined on Jan 2010
#3
Originally Posted by FunFair View Post
did anyone knw that how to package ur .deb file and make it install most of its file into opt folder? or is there any tutorial about it? u wont pass ovi if ur app din have a opt folder, i dun even knw what is that, i have totally no idea how does it work!!! -__-"

I am at the same point as you. Im wanting to package my app an start optifyng it.

firstly i would go to the wiki area and read the two packaging tutorials one is just packaging and one is for packaging for qt applications.

if you dont know how to find wikis on this site go to comunity at the top and then to use wiki, then use the search box top right. when i get home i will start trying to package mine and will share my experiance with you.

edit: danelw u beat me
 

The Following User Says Thank You to jamie721 For This Useful Post:
Posts: 19 | Thanked: 0 times | Joined on May 2010
#4
that's y i post and ask here... i really gt confuse by wiki's explain... i cant really understand it at all... -.-
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#5
Originally Posted by FunFair View Post
that's y i post and ask here... i really gt confuse by wiki's explain... i cant really understand it at all... -.-
The ideal solution is to use the application's configure/make/install scripts to install under /opt by default. The other option is to use maemo-optify (see http://maemo.gitorious.org/maemo-af/.../master/README) in your debian/rules file, or maemo-optify-deb on a completed .deb file.
 
Posts: 19 | Thanked: 0 times | Joined on May 2010
#6
Originally Posted by Rob1n View Post
The ideal solution is to use the application's configure/make/install scripts to install under /opt by default. The other option is to use maemo-optify (see http://maemo.gitorious.org/maemo-af/.../master/README) in your debian/rules file, or maemo-optify-deb on a completed .deb file.
ya... i keep trying about it for a day...i have download the maemo-optify.deb file... and the guide say we can call it right b4 "dh_builddep"...
can you tell me that what's the command to call it?

Do i have to put the maemo-optify.deb file in the debian folder?

do i have to rename it since when we download the filename was "maemo-optify_0.2.1_all.deb"

big thanks for help~
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#7
Originally Posted by FunFair View Post
ya... i keep trying about it for a day...i have download the maemo-optify.deb file... and the guide say we can call it right b4 "dh_builddep"...
can you tell me that what's the command to call it?
According to the README file I linked you to:
You can put a call to "maemo-optify" into debian/rules, immediately after dh_gencontrol or equivalent, like this:

maemo-optify PACKAGE DIR

where PACKAGE is the name of the binary package that you want to optify, and DIR is the directory with the files of the package. If you omit DIR, it defaults to "debian/PACKAGE". (The name of the package is needed for the heuristics that maemo-optify performs.)
Originally Posted by FunFair View Post
Do i have to put the maemo-optify.deb file in the debian folder?
No, maemo-optify is run by the build process, so the .deb file will need to be installed in the scratchbox (if it's not already installed by default).

Originally Posted by FunFair View Post
do i have to rename it since when we download the filename was "maemo-optify_0.2.1_all.deb"
No, the name of the .deb file is irrelevant.
 
Posts: 19 | Thanked: 0 times | Joined on May 2010
#8
i dono did i gt what u mean... is that mean after i "qmake" and "make"... i have to manual run the "maemo-optify.deb"... after that just "dpkg-buildpackage"... ? if so... i dun really need to setting in the "rules" file... ?

i'm using MADDE to compile...
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#9
Originally Posted by FunFair View Post
i dono did i gt what u mean... is that mean after i "qmake" and "make"... i have to manual run the "maemo-optify.deb"... after that just "dpkg-buildpackage"... ? if so... i dun really need to setting in the "rules" file... ?

i'm using MADDE to compile...
I doubt maemo-optify will work at all with MADDE. You're better modifying your .pro file to install under /opt instead of under /usr. For example, looking at http://wiki.maemo.org/MADDE/Packaging, in step 6 change the Exec to point to /opt/<projectname>/<projectname> and in Step 7 change the target.path to /opt/<projectname>. Obviously, for more complex programs there'll be other parts that need changing (install locations for data files, etc).
 
Posts: 200 | Thanked: 44 times | Joined on Jan 2010
#10
ok thank you rob1n the link you have linked me to is enough for me to package my idea i think.

im using scratchbox tho but i think most of the qmake stuff in the .pro file should still be the same. for example the INSTALLS section.
 
Reply


 
Forum Jump


All times are GMT. The time now is 14:17.