actions.py 938 B

1234567891011121314151617181920212223242526272829303132333435
  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 shelltools
  7. from pisi.actionsapi import cmaketools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. def setup():
  11. shelltools.makedirs("build")
  12. shelltools.cd("build")
  13. cmaketools.configure("-D CMAKE_BUILD_TYPE=Release \
  14. -DENABLE_ALSA=ON \
  15. -DENABLE_CURL=ON \
  16. -DENABLE_I3=ON \
  17. -DBUILD_IPC_MSG=ON \
  18. -DENABLE_NETWORK=ON \
  19. -DENABLE_PULSEAUDIO=ON", sourceDir="..")
  20. def build():
  21. shelltools.cd("build")
  22. cmaketools.make()
  23. #cmaketools.make("doc")
  24. def install():
  25. shelltools.cd("build")
  26. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())