actions.py 615 B

1234567891011121314151617181920212223
  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/copyleft/gpl.txt.
  6. #
  7. # nut is done with checkouts from
  8. # svn://svn.mplayerhq.hu/nut/src/trunk
  9. from pisi.actionsapi import autotools
  10. from pisi.actionsapi import pisitools
  11. from pisi.actionsapi import shelltools
  12. from pisi.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. pisitools.dodoc("COPYING", "README*")