Sorry, by build script I mean the script that generates the package, not the actual build. That should run on the build server, not the developer's machine.
https://reproducible-builds.org/
And it should be possible to build the entire system from scratch without trusting any binaries.
https://bootstrappable.org/ https://lwn.net/Articles/983340/ https://stagex.tools/