1 # Contributor: Giuseppe Calderaro <giuseppecalderaro@gmail.com>
3 pkgname='ndiswrapper-ice'
7 pkgdesc='Module for NDIS (Windows Network Drivers) drivers supplied by vendors. For kernel26-ice.'
10 url='http://ndiswrapper.sourceforge.net'
11 install='ndiswrapper.install'
12 depends=('ndiswrapper-utils' 'kernel26-ice')
13 source=(http://downloads.sourceforge.net/sourceforge/ndiswrapper/ndiswrapper-$pkgver.tar.gz)
14 md5sums=('1431f7ed5f8e92e752d330bbb3aed333')
17 cd $startdir/src/ndiswrapper-$pkgver/driver
18 make KVERS=$_kernver || return 1
19 make DESTDIR=$startdir/pkg KVERS=$_kernver install || return 1
20 rm $startdir/pkg/lib/modules/$_kernver/modules.*
22 sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
23 # move it to correct kernel directory
24 mkdir -p $startdir/pkg/lib/modules/$_kernver/kernel/drivers/net/wireless/ndiswrapper
25 mv $startdir/pkg/lib/modules/$_kernver/misc/* $startdir/pkg/lib/modules/$_kernver/kernel/drivers/net/wireless/ndiswrapper/
26 rm -r $startdir/pkg/lib/modules/$_kernver/misc/