actions.py 947 B

1234567891011121314151617181920212223242526272829303132333435
  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 autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. WorkDir = "dmraid/1.0.0.rc16-3/dmraid/"
  11. def builddiet():
  12. autotools.make("distclean")
  13. shelltools.export("CC", "diet %s %s %s -Os -static" % (get.CC(), get.CFLAGS(), get.LDFLAGS()))
  14. autotools.configure("--disable-libselinux \
  15. --disable-libsepol")
  16. autotools.make("-j1")
  17. pisitools.insinto("/sbin/", "tools/dmraid", "dmraid.static")
  18. def setup():
  19. autotools.configure("--enable-shared_lib")
  20. def build():
  21. autotools.make("-j1")
  22. def install():
  23. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  24. #builddiet()
  25. pisitools.dodoc("CHANGELOG", "README", "TODO", "KNOWN_BUGS", "doc/*")