Files
core/kernel/drivers/ndiswrapper/actions.py
T
Ertuğrul Erata fc957efe25 ndiswrapper in main
for kernel-4 can't build
2015-07-22 10:03:46 +03:00

28 lines
713 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 kerneltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
KDIR = kerneltools.getKernelVersion()
def build():
shelltools.system("patch -p1 < ndiswrapper-1.59.patch")
autotools.make("-C driver KVERS_UNAME=%s" % KDIR)
autotools.make("-C utils")
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodir("/etc/ndiswrapper")
pisitools.dodoc("README", "AUTHORS", "ChangeLog")