Do not use sudo with pamac, as it will mess with file permissions. The correct command is pamac build cpupower-gui.
pamac build cpupower-gui