actions.py 781 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file https://www.gnu.org/licenses/gpl-3.0.txt
  6. from pisi.actionsapi import mesontools, pisitools, shelltools, get
  7. def setup():
  8. mesontools.configure("--prefix=/usr --buildtype=plain")
  9. def build():
  10. mesontools.build()
  11. def install():
  12. mesontools.install()
  13. pisitools.domove("/usr/lib/systemd/user/cpupower-gui-user.service", "/usr/share/dbus-1/services/")
  14. pisitools.domove("/usr/lib/systemd/system/cpupower-gui-helper.service", "/usr/share/dbus-1/services/")
  15. pisitools.domove("/usr/lib/systemd/system/cpupower-gui.service", "/usr/share/dbus-1/services/")
  16. pisitools.removeDir("/usr/lib/systemd")
  17. pisitools.dodoc("COPYING", "README.md")