actions.py 651 B

123456789101112131415161718192021222324252627282930
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file https://www.gnu.org/licenses/gpl-3.0.txt
  6. from pisi.actionsapi import shelltools, cmaketools, pisitools, get
  7. j = ''.join([
  8. ' -DCMAKE_BUILD_TYPE=Release',
  9. ' -DWITH_ALSA=ON',
  10. ' -DWITH_CFOX=OFF',
  11. ' -DWITH_NATIVE=OFF',
  12. ' -B_build -L '
  13. ])
  14. def setup():
  15. #shelltools.unlinkDir("cfox")
  16. cmaketools.configure(j)
  17. def build():
  18. shelltools.cd("_build")
  19. cmaketools.make()
  20. def install():
  21. shelltools.cd("_build")
  22. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  23. pisitools.dodoc("../AUTHORS", "../ChangeLog")