actions.py 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl.txt
  6. from pisi.actionsapi import cmaketools
  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 \
  13. -DCMAKE_BUILD_TYPE=Release \
  14. -DCMAKE_BUILD_TYPE=RelWithDebInfo \
  15. -DUSE_QT5=ON \
  16. -DDBUS_CONFIG_FILENAME=sddm_org.freedesktop.DisplayManager.conf \
  17. -DUSE_WAYLAND=ON \
  18. -DCMAKE_INSTALL_LIBEXECDIR=/usr/lib/sddm \
  19. -DBUILD_MAN_PAGES=ON", sourceDir=".." )
  20. def build():
  21. shelltools.makedirs("build")
  22. shelltools.cd("build")
  23. cmaketools.make()
  24. def install():
  25. shelltools.makedirs("build")
  26. shelltools.cd("build")
  27. cmaketools.install()
  28. pisitools.dodoc("../LICENSE")