= How did I create the Maemo 5 packages = * I used py2deb in scratchbox * modified the py2deb file in ''/usr/lib/python2.5/site-packages/py2deb.py'' (in scratchbox) * [http://wiki.maemo.org/Py2deb#Install_py2deb fixed the bugtracker issue, followed the wiki] * modified the build depends: {{{ # ADDED for building modRana Build-Depends: debhelper (>= 5), python-support }}} * modified the "build architecture independent files section" {{{ # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. dh_pysupport /opt/modrana # its important to add path to the main application folder }}} * fixed the USERNAME environmental variable not found issue (caused by py2deb) in the ./build_modrana.py script: {{{ import os os.environ["USERNAME"]='user' }}} * made sure there is #DEBHELPER# in the '''postinst''' script * set correct file and folder permissions for the different modRana folders and files '''Example build script:''' [http://nlp.fi.muni.cz/projekty/gps_navigace/misc/build_modrana.py build_modrana.py] '''Example modified py2deb.py:''' [http://nlp.fi.muni.cz/projekty/gps_navigace/misc/py2deb.py py2deb.py] === SBOX developlment notes === * fixing the ''"malformed 3rd word on status line"'' error: * as root: {{{ dpkg --configure -a }}} * fix the reported malformed line