sudo pacman -S reflector
sudo vi /etc/systemd/system/reflector.service
[Unit]
Description=Pacman mirrorlist update
[Service]
Type=oneshot
ExecStart=/usr/bin/reflector --verbose --country 'Portugal' -l 5 -p http --sort rate --save /etc/pacman.d/mirrorlist
sudo systemctl start reflector