actions.py 886 B

1234567891011121314151617181920212223242526
  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 autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. #WorkDir = "argon2"
  11. def build():
  12. #shelltools.export("OS_CFLAGS", get.CFLAGS())
  13. #shelltools.export("OS_LDFLAGS", get.LDFLAGS())
  14. #shelltools.export("OS_CXXFLAGS", "%s -fno-strict-aliasing" % get.CXXFLAGS())
  15. shelltools.makedirs("phc-winner-argon2-20190702")
  16. autotools.make("OPTTARGET='none' LIBRARY_REL='lib' ARGON2_VERSION='%s'" % get.srcVERSION())
  17. def install():
  18. autotools.rawInstall("DESTDIR=%s LIBRARY_REL='lib' LIBDIR=%s/usr/lib ARGON2_VERSION='%s'" % (get.installDIR(), get.installDIR(), get.srcVERSION()))
  19. pisitools.dodoc("LICENSE", "README.md")