wiki:maemo5PackagingNotes

Version 3 (modified by Martin Kolman, 9 years ago) (diff)

--

How did I create the packages

  • I used py2deb in scratchbox
  • modified the py2deb file in /usr/lib/python2.5/site-packages/py2deb.py (in scratchbox)
    • fixed the bugtracker issue
    • 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: Example modified py2deb.py