just build your package as you normally would, then use this: http://maemo.org/packages/view/maemo-optify/