actions.py 636 B

123456789101112131415161718192021222324
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file https://gnu.org/licenses/gpl-3.0.txt.
  6. from pisi.actionsapi import cmaketools, pisitools, shelltools, get
  7. def setup():
  8. shelltools.makedirs("build")
  9. shelltools.cd("build")
  10. cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib ", sourceDir="..")
  11. def build():
  12. shelltools.cd("build")
  13. cmaketools.make()
  14. def install():
  15. shelltools.cd("build")
  16. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  17. shelltools.cd("..")
  18. pisitools.dodoc("AUTHORS", "COPYING")