My bad, I thought it was only used inside the chroot and sudo was just a there to evaluate privileges. But no, it's used to download the sources outside of the chroot with --preserve-env which doas does not support. So supporting doas is impossible for devtools as doas has no equivalent option for this.
So no dilemma really, just install sudo.
So I am going to make this intentionally harder, screw the devtools, what do I need in order to create an arch chroot manually and enter the chroot using the chroot binary, and then manually cloning the package and building it within the chroot?
I can extract the built package from outside the chroot if I like as well, but this is mainly for debugging purposes not for actual building.
Thanks for the help,