Use official API for disabling shallow clones
Optional resources do not need to be conditional

Resources are downloaded on-demand, so declarations don't need to be
wrapped in a conditional.
libsigrokdecode: only append to PKG_CONFIG_PATH once

`lib` is the same inside or outside of a resource("...").stage block.
Avoid "build.head?" in the DSL
Fewer conditionals in the class body