updated on Sun Jan 22 12:09:12 UTC 2012
[aur-mirror.git] / brcm80211 / PKGBUILD
blob98ed725a8af821cbef1559ca86cbe71a249aa768
1 # Contributor: virtuemood <virtue@archlinux.us>
2 pkgname=brcm80211
3 pkgver=20101217
4 pkgrel=1
5 license=GPL
6 pkgdesc="Broadcom's opensource driver"
7 arch=('i686' 'x86_64')
8 url=http://www.kernel.org
9 depends=('linux-firmware>=20100911' 'kernel26<2.6.37')
10 source_name=a3d7064
12 # http://git.kernel.org/?p=linux/kernel/git/next/linux-next.git
14 build() {
16         cd $startdir/src/linux-next-${source_name}
18         echo "KDIR    := /lib/modules/`uname -r`/build" >> ./Makefile
19         echo 'ccflags-y += -I$(SUBDIRS)/include -I$(SUBDIRS)/sys -I$(SUBDIRS)/phy' >> ./Makefile
20         
21         make -C /lib/modules/`uname -r`/build SUBDIRS=$PWD CONFIG_BRCM80211_PCI=y V=1 modules   
23         mkdir -p $startdir/pkg/lib/modules/`uname -r`/
24         cp $startdir/src/linux-next-${source_name}/brcm80211.ko  $startdir/pkg/lib/modules/`uname -r`/