How to move compilation files to disk for one package

For whatever reason my environment recompiles webkit. The problem is that package is huge and either fills /tmp tmpfs or if I resize /tmp it swap trashes everything.

Is it possible to force compilation (preferably of only this package) to /var/tmp?

This is likely because you’re using unstable, and the upstream package cache hasn’t yet caught up with that build (or the build failed entirely). Have you considered using stable, perhaps even just for the packages that depend on WebKit?

I did but the packages that depend on it are integrated with the rest of DE which is integrated with DM.