# Maintainer: Tobias Powalowski pkgname=ndiswrapper _kernver=2.6.30-ARCH pkgver=1.55 pkgrel=1 pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by vendors. For stock arch 2.6 kernel." license=('GPL') arch=('arm') url="http://ndiswrapper.sourceforge.net" install="ndiswrapper.install" depends=("ndiswrapper-utils=$pkgver" 'kernel26>=2.6.30' 'kernel26<2.6.31') source=(http://downloads.sourceforge.net/sourceforge/ndiswrapper/ndiswrapper-$pkgver.tar.gz) md5sums=('aa423a46aff97bd0a830e43d546f2b0e') build() { cd $srcdir/ndiswrapper-$pkgver/driver make KVERS=$_kernver || return 1 make DESTDIR=$pkgdir KVERS=$_kernver install || return 1 rm $pkgdir/lib/modules/$_kernver/modules.* #wtf? sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install # move it to correct kernel directory mkdir -p $pkgdir/lib/modules/$_kernver/kernel/drivers/net/wireless/ndiswrapper mv $pkgdir/lib/modules/$_kernver/misc/* $pkgdir/lib/modules/$_kernver/kernel/drivers/net/wireless/ndiswrapper/ rm -r $pkgdir/lib/modules/$_kernver/misc/ }