diff options
author | graysky | 2015-06-08 17:59:18 -0400 |
---|---|---|
committer | graysky | 2015-06-08 17:59:18 -0400 |
commit | 82224a94a9924d8b50f5eecd86016e3e08f30164 (patch) | |
tree | 8a50fa7acb3e69f5c82ea19912a516f5e8a4f1c0 /PKGBUILD | |
download | aur-82224a94a9924d8b50f5eecd86016e3e08f30164.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e5ba53e6289f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,52 @@ +# Maintainer: graysky <graysky AT archlinux DOT org> +# Maintainer: Armin K. <krejzi at email dot com> +# Contributor: Austin ( doorknob60 [at] gmail [dot] com ) +# Contributor: Gaetan Bisson <bisson@archlinux.org> + +pkgname=broadcom-wl-ck +pkgver=6.30.223.248 +pkgrel=26 +_pkgdesc='Broadcom 802.11abgn hybrid Linux networking device driver for linux-ck.' +_extramodules="extramodules-4.0-ck" +_kernver="$(cat /usr/lib/modules/${_extramodules}/version)" +pkgdesc="${_pkgdesc}" +arch=('i686' 'x86_64') +url='http://www.broadcom.com/support/802.11/linux_sta.php' +license=('custom') +depends=('linux-ck>=4.0' 'linux-ck<4.1') +makedepends=('linux-ck-headers>=4.0' 'linux-ck-headers<4.1') +conflicts=('broadcom-wl-ck-atom' 'broadcom-wl-ck-barcelona' 'broadcom-wl-ck-bulldozer' 'broadcom-wl-ck-corex' 'broadcom-wl-ck-core2' 'broadcom-wl-ck-haswell' 'broadcom-wl-ck-broadwell' 'broadcom-wl-ck-ivybridge' 'broadcom-wl-ck-kx' 'broadcom-wl-ck-k10' 'broadcom-wl-ck-nehalem' 'broadcom-wl-ck-p4' 'broadcom-wl-ck-piledriver' 'broadcom-wl-ck-pentm' 'broadcom-wl-ck-sandybridge' 'broadcom-wl-ck-silvermont') +#replaces=() +#groups=('ck-generic') +source=('modprobe.d' +'linux-recent.patch' +'gcc.patch') +source_i686+=("http://www.broadcom.com/docs/linux_sta/hybrid-v35-nodebug-pcoem-${pkgver//./_}.tar.gz") +source_x86_64+=("http://www.broadcom.com/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-${pkgver//./_}.tar.gz") +sha256sums=('b4aca51ac5ed20cb79057437be7baf3650563b7a9d5efc515f0b9b34fbb9dc32' + 'ea2da813f890aa029d41b117f1b78d4379720c108101aef46aeb54df3c261f66' + 'b07ce80f2e079cce08c8ec006dda091f6f73f158c8a62df5bac2fbabb6989849') +sha256sums_i686=('b196543a429c22b2b8d75d0c1d9e6e7ff212c3d3e1f42cc6fd9e4858f01da1ad') +sha256sums_x86_64=('3d994cc6c05198f4b6f07a213ac1e9e45a45159899e6c4a7feca5e6c395c3022') + +install=broadcom-wl-ck.install + +prepare() { + patch -p1 -i linux-recent.patch + patch -p1 -i gcc.patch + sed -e "/BRCM_WLAN_IFNAME/s:eth:wlan:" -i src/wl/sys/wl_linux.c +} + + +build() { + make -C /usr/lib/modules/"${_kernver}"/build M=`pwd` +} + +package() { + install -Dm644 wl.ko "${pkgdir}/usr/lib/modules/${_extramodules}/wl.ko" + + # makepkg does not do this automatically for this pkg so do it here + gzip -9 "${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_ck.conf" +} |