build script for all packages