actions.py 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/licenses/gpl.txt
  5. from pisi.actionsapi import cmaketools
  6. from pisi.actionsapi import pisitools
  7. from pisi.actionsapi import get
  8. from pisi.actionsapi import shelltools
  9. def setup():
  10. # pisitools.dosed("CMakeLists.txt", "0.13.0", "2.0.0")
  11. # pisitools.dosed("CMakeLists.txt", "lxqt-build-toolsConfig.cmake", "lxqt2-build-tools-config.cmake")
  12. # pisitools.dosed("CMakeLists.txt", "lxqt-build-tools-config.cmake", "lxqt2-build-tools-config-version.cmake")
  13. shelltools.makedirs("build")
  14. shelltools.cd("build")
  15. cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \
  16. -DCMAKE_PREFIX_PATH=/usr \
  17. -DCMAKE_BUILD_TYPE=Release \
  18. -DUSE_QT6=ON \
  19. -DCMAKE_INSTALL_LIBDIR=lib", sourceDir="..")
  20. def build():
  21. shelltools.cd("build")
  22. cmaketools.make()
  23. def install():
  24. shelltools.cd("build")
  25. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  26. shelltools.cd("..")
  27. pisitools.dodoc("LICENSE", "AUTHORS", "README.md", "CHANGELOG")