Files
main/system/boot/efibootmgr/actions.py
T
2017-12-09 22:56:49 +03:00

24 lines
785 B
Python

#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import shelltools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def build():
shelltools.export("CFLAGS", "-Os")
autotools.make("EFIDIR='/boot/EFI'")
def install():
shelltools.makedirs("%s/usr/sbin" % get.installDIR())
shelltools.makedirs("%s/usr/share/man" % get.installDIR())
shelltools.makedirs("%s/usr/include" % get.installDIR())
autotools.rawInstall("EFIDIR='/boot/EFI' DESTDIR=%s" % get.installDIR())
pisitools.insinto("/usr/share/man", "src/*.8")
pisitools.insinto("/usr/include", "src/include/*.h")