2009年01月24日

pre:  you should login the scratchbox. goto your project folder

1. ./autogen.sh
2. ./configure
3. make dist             // to make a *.tar.gz file.  * manes your package name
4. mkdir ../packaging    // make a folder that we package debian in it
5. cp *.tar.gz ../packaging
6. cd ../packaging
7. tar xzvf *.tar.gz
8. cd *                  // * manes your package name
9. DEBFULLNAME="User Universal"  \
 dh_make -e user@maemo.org -f ../*.tar.gz
10. cd debian
11. cat ../COPYING > copyright   // use your copyright replace with default
12. rm *.ex *.EX dirs docs README.Debian
13. change control file to match your mind.   // it’s very importance
14. dpkg-buildpackage -rfakeroot    // Generate the debian package
15. fakeroot dpkg -i *.deb  // install the debian package to Maemo Simualtor
16. fakeroot dpkg –purge *  // * means your package name