updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / broadcom-wl-lts / PKGBUILD
blob74e5df4707f693dc66f38e17734ce1d1b38e0ec9
1 # Maintainer: winix ( wininix [at] gmail [dot] com )
2 # Contributor: Gaetan Bisson <bisson@archlinux.org>
3 # Contributor: Austin ( doorknob60 [at] gmail [dot] com )
5 pkgname=broadcom-wl-lts
6 pkgver=5.100.82.38
7 pkgrel=1
8 pkgdesc='Broadcom 802.11abgn hybrid Linux networking device driver'
9 arch=('i686' 'x86_64')
10 url='http://www.broadcom.com/support/802.11/linux_sta.php'
11 license=('MIXED/Proprietary')
12 depends=('kernel26-lts')
13 makedepends=('kernel26-lts-headers' 'patch' 'make' 'gcc')
15 ARCH=x86_32
16 [ "$CARCH" = 'x86_64' ] && \
17 ARCH=x86_64
19 source=("http://www.broadcom.com/docs/linux_sta/hybrid-portsrc_${ARCH}-v${pkgver//./_}.tar.gz"
20         'license.patch')
22 sha1sums=('3062830f86c5f1f41d8a4b26d6e0072dc989c7ba'
23           '94b85f4e8f800e07799fd28a965bde69633e2cdc')
24 [ "$CARCH" = 'x86_64' ] && \
25 sha1sums=('6076de3bd8206b3e7b8bfc2eadbe3a97eec4e735'
26           '94b85f4e8f800e07799fd28a965bde69633e2cdc')
28 install=install
30 build() {
31         cd "$srcdir"
32         patch -p1 < license.patch
33         make -C /lib/modules/`uname -r`/build M=`pwd`
36 package() {
37         cd "$srcdir"
38         install -D -m 755 wl.ko "$pkgdir/lib/modules/`uname -r`/kernel/drivers/net/wireless/wl.ko"
39         install -D -m 644 lib/LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"