actions.py 930 B

123456789101112131415161718192021222324252627282930
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/copyleft/gpl.txt
  5. from pisi.actionsapi import autotools
  6. from pisi.actionsapi import pisitools
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import get
  9. def build():
  10. shelltools.system("sed -i '/^#include /s|ncursesw/||' gptcurses.cc")
  11. autotools.make()
  12. def install():
  13. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  14. # pisitools.dobin("cgdisk")
  15. # pisitools.dobin("fixparts")
  16. # pisitools.dobin("gdisk")
  17. # pisitools.dobin("sgdisk")
  18. # pisitools.doman("cgdisk.8")
  19. # pisitools.doman("fixparts.8")
  20. # pisitools.doman("gdisk.8")
  21. # pisitools.doman("sgdisk.8")
  22. for bin in shelltools.ls("%s/usr/bin" % get.installDIR()):
  23. pisitools.dosym("/usr/bin/%s" % bin, "/usr/sbin/%s" % bin)
  24. pisitools.dodoc("COPYING", "NEWS", "README")