I would use git clone then makepkg to build the package but not install it. For more information see:
git clone
makepkg
https://wiki.archlinux.org/title/Arch_User_Repository