actions.py 790 B

123456789101112131415161718192021222324252627
  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 kde5
  6. from pisi.actionsapi import cmaketools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import qt6
  9. from pisi.actionsapi import get
  10. def setup():
  11. cmaketools.configure("-B build-qt6 -DCMAKE_INSTALL_PREFIX=/usr \
  12. -DCMAKE_INSTALL_LIBDIR=lib \
  13. -DECM_MKSPECS_INSTALL_DIR=/usr/lib/qt6/mkspecs/modules \
  14. -DBUILD_WITH_QT6=ON")
  15. def build():
  16. cmaketools.make("-C build-qt6")
  17. def install():
  18. cmaketools.install("-C build-qt6 DESTDIR=%s" % get.installDIR())
  19. pisitools.dodoc("ChangeLog", "COPYING", "ReadMe*")