# Maintainer: Austin ( doorknob60 [at] gmail [dot] com ) pkgname=broadcom-wl pkgver=5.60.48.36 pkgrel=3 pkgdesc="Broadcom 802.11abg Networking Drivers" arch=('i686' 'x86_64') [ "$CARCH" = "i686" ] && ARCH=x86_32 [ "$CARCH" = "x86_64" ] && ARCH=x86_64 url="http://www.broadcom.com/support/802.11/linux_sta.php" license=('MIXED/Proprietary') depends=('kernel26>=2.6.33' 'kernel26<2.6.34') makedepends=(kernel26-headers) install=broadcom-wl.install source=("http://www.broadcom.com/docs/linux_sta/hybrid-portsrc-${ARCH}-v${pkgver}.tar.gz") md5sums=(0466d863405e1ab99d5e288fe886e852) [ "$CARCH" == "x86_64" ] && md5sums=(a78095ddcc30a191f64dccbc31b84de8) build() { # Adding line license sed -i '190i\MODULE_LICENSE("Mixed/Proprietary"); \n' ${srcdir}/src/wl/sys/wl_linux.c sed -i 's/linux\/autoconf.h/generated\/autoconf.h/' ${srcdir}/src/include/linuxver.h # Building KBUILD_NOPEDANTIC=1 make -C /lib/modules/$(uname -r)/build M=`pwd` || return 1 install -D -m 755 wl.ko ${pkgdir}/lib/modules/$(uname -r)/kernel/drivers/net/wireless/wl.ko || return 1 }