The buildpkg script creates a closed environment for building the package. This is done, so not to pollute your system with build artifacts.