zpm: integrate packaging with build