Why make a VM, when you could build it in a chroot?
You are right. I updated my post.
]]>1. Take the name of a AUR package as an argument
2. Spin up a Arch Linux VM/sets up a arch-linux chroot environment, with "base" installed, but no other packages.
3. (Tries to) build the AUR package
4. Reports if the build failed.
Such a script would be nice to check for packages that are completely broken since an update. I have encountered many packages that have build processes that are just broken since a few months.
If such a script does not exist, I will probably write one.
EDIT:
https://wiki.archlinux.org/index.php/De … ean_chroot seems to be helpful:
$ mkdir cleanchroot
$ mkarchroot cleanchroot/root base-devel
$ git clone https://aur.archlinux.org/bear.git
$ cd bear
$ makechrootpkg -c -r ../cleanchroot