Advertisement
gusta11

broadcom-wl-pae

Nov 1st, 2014
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. # Maintainer: Armin K. <krejzi at email dot com>
  2. # Contributor: Austin ( doorknob60 [at] gmail [dot] com )
  3. # Contributor: Gaetan Bisson <bisson@archlinux.org>
  4. # Contributor: gusta11 <gusta11@openmailbox.org>
  5. pkgname=broadcom-wl-pae
  6. pkgver=6.30.223.248
  7. pkgrel=2
  8. pkgdesc='Broadcom 802.11abgn hybrid Linux networking device driver'
  9. url='http://www.broadcom.com/support/802.11/linux_sta.php'
  10. arch=('i686' 'x86_64')
  11. license=('custom')
  12. depends=('linux-pae')
  13. makedepends=('linux-pae-headers')
  14. [[ $CARCH = x86_64 ]] && _arch=_64 || _arch=
  15. source=("http://www.broadcom.com/docs/linux_sta/hybrid-v35${_arch}-nodebug-pcoem-${pkgver//./_}.tar.gz"
  16. 'modprobe.d'
  17. 'license.patch'
  18. 'linux-recent.patch'
  19. 'gcc.patch')
  20. sha256sums=('b196543a429c22b2b8d75d0c1d9e6e7ff212c3d3e1f42cc6fd9e4858f01da1ad'
  21. 'b4aca51ac5ed20cb79057437be7baf3650563b7a9d5efc515f0b9b34fbb9dc32'
  22. '2f70be509aac743bec2cc3a19377be311a60a1c0e4a70ddd63ea89fae5df08ac'
  23. 'f651681496316ac60b5f2d37c93a36b3a4a1ee29ab6aada6eebaef7f7c1f1d02'
  24. 'b07ce80f2e079cce08c8ec006dda091f6f73f158c8a62df5bac2fbabb6989849')
  25. [[ $CARCH = x86_64 ]] && sha256sums[0]='3d994cc6c05198f4b6f07a213ac1e9e45a45159899e6c4a7feca5e6c395c3022'
  26.  
  27. install=install
  28.  
  29. _kernmajor="$(pacman -Q linux-pae | awk '{print $2}' | cut -d - -f1 | cut -d . -f1,2)"
  30. _extramodules="extramodules-${_kernmajor}-pae"
  31. _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
  32.  
  33. prepare() {
  34. cd "${srcdir}"
  35.  
  36. patch -p1 -i linux-recent.patch
  37. patch -p1 -i license.patch
  38. patch -p1 -i gcc.patch
  39.  
  40. sed -e "/BRCM_WLAN_IFNAME/s:eth:wlan:" \
  41. -i src/wl/sys/wl_linux.c
  42. }
  43.  
  44. build() {
  45. cd "${srcdir}"
  46.  
  47. make -C /usr/lib/modules/${_kernver}/build M=`pwd`
  48. }
  49.  
  50. package() {
  51. cd "${srcdir}"
  52.  
  53. install -Dm644 wl.ko "${pkgdir}/usr/lib/modules/${_extramodules}/wl.ko"
  54. gzip "${pkgdir}/usr/lib/modules/${_extramodules}/wl.ko"
  55.  
  56. install -Dm644 lib/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  57. install -Dm644 modprobe.d "${pkgdir}/usr/lib/modprobe.d/broadcom-wl.conf"
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement