actions.py 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  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/copyleft/gpl.txt.
  6. from pisi.actionsapi import cmaketools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. def setup():
  11. cmaketools.configure("-B build5 -DCMAKE_INSTALL_PREFIX=/usr \
  12. -DQUAZIP_QT_MAJOR_VERSION=5 \
  13. -DBUILD_WITH_QT4:BOOL=OFF")
  14. cmaketools.configure("-B build6 -DCMAKE_INSTALL_PREFIX=/usr \
  15. -DQUAZIP_QT_MAJOR_VERSION=6 \
  16. -DBUILD_WITH_QT4:BOOL=OFF")
  17. def build():
  18. cmaketools.make("-C build5")
  19. cmaketools.make("-C build6")
  20. def install():
  21. shelltools.cd("build5")
  22. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  23. shelltools.cd("../build6")
  24. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  25. shelltools.cd("..")
  26. pisitools.dodoc("COPYING", "README.md", "NEWS.txt")