To prevent packages from updating
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup #IgnorePkg = #IgnoreGroup = #NoUpgrade = #NoExtract =
For example, stop updating xorg-server
Edit:
/etc/pacman.conf
add
IgnorePkg = xorg-server
Sync with repository
pacman -Syu