This commit is contained in:
Jan Mette 2010-03-28 14:31:29 +00:00
parent 5b23014400
commit 91fc5ce0be
2 changed files with 43 additions and 0 deletions

26
broadcom-wl/PKGBUILD Normal file
View File

@ -0,0 +1,26 @@
# Maintainer: Austin ( doorknob60 [at] gmail [dot] com )
pkgname=broadcom-wl
pkgver=5.60.48.36
pkgrel=1
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.29' 'kernel26<2.6.33')
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
# 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
}

View File

@ -0,0 +1,17 @@
post_install() {
KERNEL_VERSION=$(uname -r)
depmod $KERNEL_VERSION
echo ""
echo "==> NOTE:"
echo "==> If the modules do not load at boot, remember add in your rc.conf:"
echo "==> MODULES=(lib80211 wl !b43 !ssb ...)"
echo ""
echo "==> And if you have problems with interfaces swapped, read the wiki:"
echo "==> http://wiki.archlinux.org/index.php/Broadcom_BCM4312#Interfaces_swapped_every_time"
}
post_upgrade() {
post_install
}