summaryrefslogtreecommitdiffstats
path: root/abs/not_built/core/ndiswrapper/PKGBUILD
blob: 9bc90fd21ec19075d8b3acf96a2e87ed9adde47f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#$Id: PKGBUILD 105330 2011-01-07 20:49:19Z tpowa $
#Maintainer: Tobias Powalowski <tpowa@archlinux.org>

pkgname=ndiswrapper
_kernver=2.6.39-LinHES
pkgver=1.56
pkgrel=8
pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by vendors. For stock arch 2.6 kernel."
license=('GPL')
arch=(i686 x86_64)
url="http://ndiswrapper.sourceforge.net"
install="ndiswrapper.install"
depends=("ndiswrapper-utils=$pkgver" 'kernel26>=2.6.39' 'kernel26<2.6.40')
makedepends=('kernel26-headers>=2.6.39' 'kernel26-headers<2.6.40')
source=(http://downloads.sourceforge.net/sourceforge/ndiswrapper/ndiswrapper-$pkgver.tar.gz
        kernel-2.6.35.patch
        kernel-2.6.36.patch
	ndiswrapper_kernel-2.6.38.patch)
build()
{
  cd $srcdir/ndiswrapper-$pkgver/driver
  patch -Np2 -i $startdir/kernel-2.6.35.patch
  patch -Np2 -i $startdir/kernel-2.6.36.patch
  patch -Np2 -i $startdir/ndiswrapper_kernel-2.6.38.patch
  make KVERS=$_kernver
  make DESTDIR=$pkgdir KVERS=$_kernver install
  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/
}

md5sums=('1431f7ed5f8e92e752d330bbb3aed333'
         '0a03d613b1fd545a75c5dd1a7c2aaec4'
         'cc16ed13449f17e90865df688b180b2c')
md5sums=('1431f7ed5f8e92e752d330bbb3aed333'
         '0a03d613b1fd545a75c5dd1a7c2aaec4'
         'cc16ed13449f17e90865df688b180b2c'
         '2499a87276ae0c8ce39bea6ef942d926')