mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
28 lines
1.1 KiB
Bash
28 lines
1.1 KiB
Bash
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
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/
|
|
}
|