actions.py 857 B

1234567891011121314151617181920212223242526272829303132
  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 autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import cmaketools
  10. from pisi.actionsapi import get
  11. #WorkDir = "apfs-fuse-master"
  12. def setup():
  13. shelltools.system("mv ../lzfse-lzfse-1.0 lzfse")
  14. shelltools.system("mv lzfse ./3rdparty/")
  15. shelltools.system("mkdir build")
  16. shelltools.cd("build")
  17. shelltools.system("cmake .. -DBUILDCMAKE_SHARED_LIBS:BOOL=OFF -DCMAKE_BUILD_TYPE=Release")
  18. def build():
  19. shelltools.cd('build')
  20. cmaketools.make()
  21. def install():
  22. shelltools.cd('build')
  23. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  24. #pisitools.dodoc("LICENSE", "README.md")