This is based on chaotic-aur. The string join method can be changed (I'm using fish shell so this is the fish script) the Korea mirror can also be used, I guess.
wget (string join '-' 'https://sg-mirror.chaotic.cx/chaotic-aur/x86_64/clash-verge-rev' (curl -s "https://aur.archlinux.org/rpc/v5/info?arg[]=clash-verge-rev" | jq '.results[0].Version' | sed 's/^.\(.*\).$/\1/' ) 'x86_64.pkg.tar.zst') -O cvr.pkg.tar.zst && sudo pacman -U cvr.pkg.tar.zst