actions.py 877 B

123456789101112131415161718192021222324252627282930
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Copyright 2019 TUBITAK/UEKAE
  5. # Licensed under the GNU General Public License, version 2.
  6. # See the file http://www.gnu.org/copyleft/gpl.txt.
  7. from pisi.actionsapi import get
  8. from pisi.actionsapi import qt5
  9. from pisi.actionsapi import cmaketools
  10. from pisi.actionsapi import shelltools
  11. from pisi.actionsapi import pisitools
  12. def setup():
  13. pisitools.dosed("src/main.cpp", "/usr/lib/at-spi2-core/at-spi-bus-launcher", "/usr/libexec/at-spi2/at-spi-bus-launcher")
  14. shelltools.makedirs("build")
  15. shelltools.cd("build")
  16. cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr", sourceDir="..")
  17. def build():
  18. shelltools.cd("build")
  19. cmaketools.make()
  20. def install():
  21. shelltools.cd("build")
  22. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  23. shelltools.cd("..")
  24. pisitools.dodoc("LICENSE", "README.md")