actions.py 794 B

123456789101112131415161718192021222324252627
  1. #!/usr/bin/env 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 get
  9. def build():
  10. autotools.make()
  11. autotools.make("zstdmt")
  12. autotools.make("-C contrib/pzstd")
  13. def check():
  14. autotools.make("check")
  15. autotools.make("-C contrib/pzstd test")
  16. def install():
  17. autotools.rawInstall("PREFIX=/usr DESTDIR=%s" % get.installDIR())
  18. autotools.rawInstall("-C contrib/pzstd PREFIX=/usr DESTDIR=%s" % get.installDIR())
  19. #pisitools.dobin("zstdmt")
  20. #pisitools.dobin("contrib/pzstd/pzstd")
  21. pisitools.dodoc("CONTRIBUTING*", "CHANGELOG*", "COPYING", "LICENSE", "README*")