actions.py 584 B

123456789101112131415161718192021222324
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. from pisi.actionsapi import pisitools
  4. from pisi.actionsapi import shelltools
  5. from pisi.actionsapi import autotools
  6. from pisi.actionsapi import get
  7. NoStrip = "/"
  8. def setup():
  9. shelltools.export("LDFLAGS", "%s -lm" % get.LDFLAGS())
  10. autotools.configure("--prefix=/usr")
  11. pisitools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")
  12. def build():
  13. autotools.make()
  14. def install():
  15. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  16. pisitools.dodoc("AUTHORS", "ChangeLog", "README", "COPYING")