Normally services are enabled / started by the user, not the package. See the Simplicity clause.
If you do enable / start services via the package, it needs to be in the install file. Do not use the repo's install or remove scripts, Pacman will install and remove the main files. See my example PKGBUILD and install file here.
Pinned Comments
OlexandrCh commented on 2020-08-13 20:44 (UTC) (edited on 2020-08-13 20:44 (UTC) by OlexandrCh)
Currently, we don't need to run
--install
on AURAfter installing from AUR, we need to start the systemd service.
systemctl enable auto-cpufreq
systemctl start auto-cpufreq
and check if it
enabled
andrunning
withsystemctl status auto-cpufreq