actions.py 890 B

123456789101112131415161718192021222324252627282930
  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 get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import shelltools
  10. def setup():
  11. shelltools.system("./autogen.sh")
  12. autotools.configure()
  13. def build():
  14. autotools.make("CC=%s" % get.CC())
  15. #autotools.make("V=1 CC=%s CFLAGS=\"%s\"" % (get.CC(), get.CFLAGS()))
  16. #autotools.make("V=1 CC=%s CFLAGS=\"%s\" btrfs-select-super" % (get.CC(), get.CFLAGS()))
  17. def install():
  18. autotools.rawInstall("prefix=/usr DESTDIR=%s" % get.installDIR())
  19. pisitools.remove("/usr/lib/*.a")
  20. #pisitools.insinto("/usr/bin", "bcp", "btrfs-bcp")
  21. pisitools.insinto("/usr/bin", "show-blocks", "btrfs-show-blocks")
  22. pisitools.dodoc("COPYING")