actions.py 785 B

123456789101112131415161718192021222324
  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. shelltools.export("CFLAGS", "-Os")
  12. autotools.make("EFIDIR='/boot/EFI'")
  13. def install():
  14. shelltools.makedirs("%s/usr/sbin" % get.installDIR())
  15. shelltools.makedirs("%s/usr/share/man" % get.installDIR())
  16. shelltools.makedirs("%s/usr/include" % get.installDIR())
  17. autotools.rawInstall("EFIDIR='/boot/EFI' DESTDIR=%s" % get.installDIR())
  18. pisitools.insinto("/usr/share/man", "src/*.8")
  19. pisitools.insinto("/usr/include", "src/include/*.h")