View Single Post
ArnimS's Avatar
Posts: 1,107 | Thanked: 720 times | Joined on Mar 2007 @ Germany
#2
Originally Posted by gsagers View Post
I've successfully cross-compiled my first program, p7zip for arm. I manually copied the arm binary to my N800, and it correctly compresses and decompresses some example files.

I'm now at the stage where I'm trying to create a .deb, and have the control file and changelog, but the Maemo Tutorial isn't real clear about what needs to be in the "rules file". I've read through the debian new maintainers manual, but the example there seems pretty convoluted for my needs. Could someone post or point me to a fairly simple rules file? p7zip compiles to a single binary, plus the associated man files. I'm just not sure how much
needs to be included for a CLI app on Maemo.
Hi, you should be able to "apt-get source p7zip" from a debian host.

This will give you something like
>ls -s p7

total 1608
4 p7zip-4.44~dfsg.1 4 p7zip_4.44~dfsg.1-2.dsc
12 p7zip_4.44~dfsg.1-2.diff.gz 1588 p7zip_4.44~dfsg.1.orig.tar.

in the p7zip-4.44~dfsg.1 directory you'll find a debian directory with a rules file.

In general it's a good idea to start with debian sources, then work from there.

For simple programs needing only a few source files, you can try 'maemo wizard' written by neostrider. I can't find his site right now so here's a link.
http://ln-s.net/K2U

Disclaimer: I don't know what i'm talking about.