Files
main/hardware/disk/dmraid/actions.py
T
2015-08-04 13:47:51 +03:00

35 lines
947 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 pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
WorkDir = "dmraid/1.0.0.rc16-3/dmraid/"
def builddiet():
autotools.make("distclean")
shelltools.export("CC", "diet %s %s %s -Os -static" % (get.CC(), get.CFLAGS(), get.LDFLAGS()))
autotools.configure("--disable-libselinux \
--disable-libsepol")
autotools.make("-j1")
pisitools.insinto("/sbin/", "tools/dmraid", "dmraid.static")
def setup():
autotools.configure("--enable-shared_lib")
def build():
autotools.make("-j1")
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
#builddiet()
pisitools.dodoc("CHANGELOG", "README", "TODO", "KNOWN_BUGS", "doc/*")