actions.py 745 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 get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools, shelltools, cmaketools
  9. def setup():
  10. shelltools.system("cmake -B build -S cmake_unofficial \
  11. -DCMAKE_BUILD_TYPE=Release \
  12. -DCMAKE_INSTALL_PREFIX=/usr \
  13. -DCMAKE_INSTALL_LIBDIR=/usr/lib")
  14. def build():
  15. shelltools.cd("build")
  16. cmaketools.make()
  17. def install():
  18. shelltools.cd("build")
  19. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  20. # pisitools.remove('/usr/lib/libxxhash.a')
  21. shelltools.cd("..")
  22. pisitools.dodoc("LICENSE", "doc/*")