diff options
author | Armin K | 2014-12-30 18:20:33 +0100 |
---|---|---|
committer | Armin K | 2014-12-30 18:20:33 +0100 |
commit | ca527740c70e692c084a2df8e932723b64a767fa (patch) | |
tree | 314c472403be6fc0c97ba84cb85d4958afc72c31 /PKGBUILD | |
download | aur-ca527740c70e692c084a2df8e932723b64a767fa.tar.gz |
Initial commit for broadcom-wl.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d1fa6deda9f8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,58 @@ +# Maintainer: Armin K. <krejzi at email dot com> +# Contributor: Austin ( doorknob60 [at] gmail [dot] com ) +# Contributor: Gaetan Bisson <bisson@archlinux.org> + +pkgname=broadcom-wl +pkgver=6.30.223.248 +pkgrel=4 +pkgdesc='Broadcom 802.11abgn hybrid Linux networking device driver' +url='http://www.broadcom.com/support/802.11/linux_sta.php' +arch=('i686' 'x86_64') +license=('custom') +depends=('linux') +makedepends=('linux-headers') +[[ $CARCH = x86_64 ]] && _arch=_64 || _arch= +source=("http://www.broadcom.com/docs/linux_sta/hybrid-v35${_arch}-nodebug-pcoem-${pkgver//./_}.tar.gz" + 'modprobe.d' + 'license.patch' + 'linux-recent.patch' + 'gcc.patch') +sha256sums=('b196543a429c22b2b8d75d0c1d9e6e7ff212c3d3e1f42cc6fd9e4858f01da1ad' + 'b4aca51ac5ed20cb79057437be7baf3650563b7a9d5efc515f0b9b34fbb9dc32' + '2f70be509aac743bec2cc3a19377be311a60a1c0e4a70ddd63ea89fae5df08ac' + 'ebbcac3a37787c86fa8515046d81d1d0bb2669215703d6fa2800233029bf3d63' + 'b07ce80f2e079cce08c8ec006dda091f6f73f158c8a62df5bac2fbabb6989849') +[[ $CARCH = x86_64 ]] && sha256sums[0]='3d994cc6c05198f4b6f07a213ac1e9e45a45159899e6c4a7feca5e6c395c3022' + +install=install + +_kernmajor="$(pacman -Q linux | awk '{print $2}' | cut -d - -f1 | cut -d . -f1,2)" +_extramodules="extramodules-${_kernmajor}-ARCH" +_kernver="$(cat /usr/lib/modules/${_extramodules}/version)" + +prepare() { + cd "${srcdir}" + + patch -p1 -i linux-recent.patch + patch -p1 -i license.patch + patch -p1 -i gcc.patch + + sed -e "/BRCM_WLAN_IFNAME/s:eth:wlan:" \ + -i src/wl/sys/wl_linux.c +} + +build() { + cd "${srcdir}" + + make -C /usr/lib/modules/${_kernver}/build M=`pwd` +} + +package() { + cd "${srcdir}" + + install -Dm644 wl.ko "${pkgdir}/usr/lib/modules/${_extramodules}/wl.ko" + gzip "${pkgdir}/usr/lib/modules/${_extramodules}/wl.ko" + + install -Dm644 lib/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm644 modprobe.d "${pkgdir}/usr/lib/modprobe.d/broadcom-wl.conf" +} |