1 # Maintainer: Tobias Powalowski <tpowa@archlinux.org>
3 pkgname=ndiswrapper-lts
7 pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by vendors. For LTS 2.6 kernel."
10 url="http://ndiswrapper.sourceforge.net"
11 install="ndiswrapper.install"
12 depends=("ndiswrapper-utils=$pkgver" 'kernel26-lts>=2.6.32' 'kernel26-lts<2.6.33')
13 makedepends=('kernel26-lts-headers>=2.6.32' 'kernel26-lts-headers<2.6.33')
14 source=(http://downloads.sourceforge.net/sourceforge/ndiswrapper/ndiswrapper-$pkgver.tar.gz)
16 md5sums=('1431f7ed5f8e92e752d330bbb3aed333')
20 cd $srcdir/ndiswrapper-$pkgver/driver
25 cd $srcdir/ndiswrapper-$pkgver/driver
26 make DESTDIR=$pkgdir KVERS=$_kernver install
27 rm $pkgdir/lib/modules/$_kernver/modules.* #wtf?
29 sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
30 # move it to correct kernel directory
31 mkdir -p $pkgdir/lib/modules/$_kernver/kernel/drivers/net/wireless/ndiswrapper
32 mv $pkgdir/lib/modules/$_kernver/misc/* $pkgdir/lib/modules/$_kernver/kernel/drivers/net/wireless/ndiswrapper/
33 rm -r $pkgdir/lib/modules/$_kernver/misc/
35 find "$pkgdir" -name '*.ko' -exec gzip -9 {} \;