maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Need help creating a simple .deb file (https://talk.maemo.org/showthread.php?t=68869)

deny_winarto 2011-01-24 15:20

Need help creating a simple .deb file
 
Ok, i'm completely new at this, so pardon me if i don't understand alot of things..

I want to compile the .tar from webos games into .deb format so that non-geek users can install the games right away.

Now i was able to install the games with the following method :

1. Extract the .ipk games
2. Put the .tar in home folder
3. run the following code
Code:

sudo gainroot
cd /
tar xvf /home/user/MyDocs/game.tar
cd /opt/preenv/usr/palm/applications/com.gameloft.app.realsoccer2010/gamefolder
chmod +rwx game
cd ..
desktopgen appinfo.json

Now i want to create the .deb file that runs above script.
Basically it's just processing the .tar file with a script that contains the code above.

So can anyone tell me the general idea to implement this?
I've set up maemo SDK under VMware player,

Then i run the scratchbox on X-terminal but idk what to do next..
i've been following this tutorial but i can't find what i want there ..

http://wiki.maemo.org/User:Jebba/Package_Building_HOWTO

Creamy Goodness 2011-01-24 16:59

Re: Need help creating a simple .deb file
 
http://forums.debian.net/viewtopic.php?f=19&t=35697

i just searched for "building a debian package with no source"
it should be easy enough

deny_winarto 2011-01-25 02:26

Re: Need help creating a simple .deb file
 
Quote:

Originally Posted by Creamy Goodness (Post 927480)
http://forums.debian.net/viewtopic.php?f=19&t=35697

i just searched for "building a debian package with no source"
it should be easy enough

thanks, but i can't find the method to create an executable file that tells the package what to do with the .tar after the unpacking process.. care to help me on that?

I want it to do all procedure i mentioned above..

Would it be possible to create a .sh file for this case?

Creamy Goodness 2011-01-25 03:50

Re: Need help creating a simple .deb file
 
there should be one already called postinst inside the debian folder
it might say postinst.ex so you can rename it to remove the .ex if that is the case.
it should execute automatically when the deb is installed

raaj13 2011-01-25 05:08

Re: Need help creating a simple .deb file
 
which games are you trying to build?


All times are GMT. The time now is 13:32.

vBulletin® Version 3.8.8