actions.py 797 B

1234567891011121314151617181920212223242526272829
  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/licenses/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. WorkDir = "indi-%s" % get.srcVERSION()
  11. def setup():
  12. #shelltools.cd("libindi")
  13. cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \
  14. -DINDI_BUILD_QT5_CLIENT=ON \
  15. -DBUILD_ROOT=%s" % get.installDIR())
  16. def build():
  17. #shelltools.cd("libindi")
  18. cmaketools.make()
  19. def install():
  20. #shelltools.cd("libindi")
  21. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  22. pisitools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README*")