actions.py 626 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/copyleft/gpl.txt.
  6. #
  7. # nut is done with checkouts from
  8. # svn://svn.mplayerhq.hu/nut/src/trunk
  9. from inary.actionsapi import autotools
  10. from inary.actionsapi import inarytools
  11. from inary.actionsapi import shelltools
  12. from inary.actionsapi import get
  13. def build():
  14. shelltools.export("CFLAGS", "%s -fPIC" % get.CFLAGS())
  15. autotools.make("-j1 CC=%s" % get.CC())
  16. def install():
  17. autotools.rawInstall("PREFIX=%s/usr" % get.installDIR())
  18. inarytools.dodoc("COPYING", "README*")