template: adjust the template for package.main