View Single Post
Posts: 73 | Thanked: 33 times | Joined on Nov 2010
#20
Originally Posted by TheBurek View Post
turns out I have no clue how to make a proper DEB. My project is written in Eclipse for C/C++ and its make scripts are all generated by Eclipse and as far as I can see, those can't provide any easy way to make a DEB. Any hints? Good guides? Volunteers maybe? If I don't figure this out soon, I'll just dump the binary with its data files in a ZIP or something, cause I'm really anxoius to release it already. I can take care of the nice packaging later.
Easy:

- mkdir -p reverstris-lite_0.1_armel/DEBIAN
- in reverstris-lite_0.1_armel create the folder structure with how the files should reside on the N900, i.e. mkdir usr/... opt/... whatever, put the files there
- into DEBIAN/ copy a file control, which you should just copy over from some deb you already have, you can extract it there with:
dpkg -e the-other-deb-file-name.deb reverstris-lite_0.1_armel/DEBIAN
- edit the control, it's selfexplanatory, put in the details, like name of the package etc. easy
- if you need postinst scripts i.e. something that should be done after the deb is installed, create postinst postrm etc. scripts in the DEBIAN directory, you can find examples of these in many debs you have.

Generate the deb with:
dpkg -b reverstris-lite_0.1_armel

That's it, easy.
 

The Following 4 Users Say Thank You to jj0 For This Useful Post: