actions.py 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #!/usr/bin/env 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 pisitools
  7. from pisi.actionsapi import cmaketools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import kde5
  10. from pisi.actionsapi import kde6
  11. from pisi.actionsapi import get
  12. def setup():
  13. cmaketools.configure("-B build -DBUILD_TESTING=OFF \
  14. -DBUILD_DESIGNERPLUGIN=ON \
  15. -DCMAKE_INSTALL_PREFIX=/usr \
  16. -DCMAKE_INSTALL_LIBDIR=lib \
  17. -DQT_MAJOR_VERSION=5 \
  18. -DBUILD_QCH=ON")
  19. cmaketools.configure("-B build6 -DBUILD_TESTING=OFF \
  20. -DCMAKE_INSTALL_PREFIX=/usr \
  21. -DCMAKE_INSTALL_LIBDIR=lib \
  22. -DBUILD_DESIGNERPLUGIN=ON \
  23. -DBUILD_WITH_QT5:BOOL=OFF \
  24. -DBUILD_QCH=ON \
  25. -DQT_MAJOR_VERSION=6")
  26. # kde5.configure()
  27. def build():
  28. cmaketools.make("-C build")
  29. # shelltools.cd("./build6")
  30. cmaketools.make("-C build6")
  31. def install():
  32. cmaketools.install("-C build")
  33. # shelltools.cd("./build6")
  34. cmaketools.install("-C build6")
  35. pisitools.dodoc("LICENSES/*", "README*")