actions.py 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/copyleft/gpl.txt
  5. from pisi.actionsapi import cmaketools
  6. from pisi.actionsapi import get
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. def setup():
  10. shelltools.makedirs("build")
  11. shelltools.cd("build")
  12. cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr", sourceDir="..")
  13. def build():
  14. shelltools.cd("build")
  15. cmaketools.make()
  16. def install():
  17. shelltools.cd("build")
  18. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  19. #fixed menu icon for Pisi
  20. light_themes=("Clearlooks","KDE-Plasma", "light", "system")
  21. for i in light_themes:
  22. pisitools.remove("/usr/share/lxqt/themes/%s/mainmenu.svg" % i)
  23. pisitools.dosym("/usr/share/icons/hicolor/scalable/places/start-here-light.svg", "/usr/share/lxqt/themes/%s/mainmenu.svg" % i)
  24. dark_themes=("ambiance", "Arch-Colors", "dark", "frost", "Leech", "silver", "Valendas")
  25. for i in dark_themes:
  26. pisitools.remove("/usr/share/lxqt/themes/%s/mainmenu.svg" % i)
  27. pisitools.dosym("/usr/share/icons/hicolor/scalable/places/start-here-dark.svg", "/usr/share/lxqt/themes/%s/mainmenu.svg" % i)
  28. pisitools.remove("/usr/share/lxqt/themes/kvantum/lxqt-panel/mainmenu.svg")
  29. pisitools.dosym("/usr/share/icons/hicolor/scalable/places/start-here-dark.svg", "/usr/share/lxqt/themes/kvantum/lxqt-panel/mainmenu.svg")