actions.py 1.0 KB

12345678910111213141516171819202122232425262728
  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 shelltools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. def build():
  11. pisitools.dosed("Make.defaults", "lib64", "lib")
  12. pisitools.dosed("Make.defaults", "grub.efi", "grubx64.efi")
  13. shelltools.system("sed -e '/extern int efi_set_verbose/d' -i src/efibootmgr.c")
  14. shelltools.export("CFLAGS", "-Os")
  15. autotools.make("EFIDIR=pisilinux sbindir=/usr/sbin EFI_LOADER=grubx64.efi")
  16. def install():
  17. # shelltools.makedirs("%s/usr/sbin" % get.installDIR())
  18. # shelltools.makedirs("%s/usr/share/man" % get.installDIR())
  19. # shelltools.makedirs("%s/usr/include" % get.installDIR())
  20. autotools.rawInstall("EFIDIR=pisilinux sbindir=/usr/sbin DESTDIR=%s" % get.installDIR())
  21. # pisitools.insinto("/usr/share/man", "src/*.8")
  22. pisitools.insinto("/usr/include", "src/include/*.h")