I created a docker makepkg builder if anyone wants to keep their system clean.
https://hub.docker.com/r/ndowens2004/artix-build
How to use: lets say you want to package yay:
git clone https://aur.archlinux.org/yay
Now you can either cd into the yay dir or build from outside
From Outside dir:
docker run --rm -v $(pwd)/yay/:/pkg ndowens2004/artix-build
Inside yay dir:
docker run --rm -v $(pwd):/pkg ndowens2004/artix-build