Add a package-local 'build' variable
Closes #1040