You are missing the prerequisites to use the AUR. (namely base-devel)
base-devel
https://wiki.archlinux.org/title/Arch_User_Repository