build a package