[pkg] change the build behavior