updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / ndiswrapper-ice / PKGBUILD
blobfebc47763b13103defc092e7d48293eeabc6e96a
1 # Contributor: Giuseppe Calderaro <giuseppecalderaro@gmail.com>
3 pkgname='ndiswrapper-ice'
4 _kernver='2.6.32-ice'
5 pkgver=1.56
6 pkgrel=1
7 pkgdesc='Module for NDIS (Windows Network Drivers) drivers supplied by vendors. For kernel26-ice.'
8 license=('GPL')
9 arch=('i686' 'x86_64')
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')
16 build() {
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/