Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Broadcom-wl PKGBUILD for Linux 3.11

By: a guest on Sep 6th, 2013  |  syntax: None  |  size: 1.67 KB  |  views: 185  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.  
  5. pkgname=broadcom-wl
  6. pkgver=5.100.82.112
  7. pkgrel=13
  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>=3.10')
  13. makedepends=('linux-headers>=3.10')
  14. version=5_100_82_112
  15.  
  16. [[ $CARCH = x86_64 ]] && ARCH=x86_64 || ARCH=x86_32
  17. source=("http://www.broadcom.com/docs/linux_sta/hybrid-portsrc_${ARCH}-v${version}.tar.gz"
  18.         'modprobe.d'
  19.         'license.patch'
  20.         'linux-recent.patch')
  21. sha1sums=('01aa32f9e85621253a3f15cf4361bb80d41da3e8'
  22.           '89bf92286ede30dd85304c6c4e42e89cfdc0f60a'
  23.           'ea7b67982ddc0f56fd3becb9914fd4458fe7d373'
  24.           'e03eb9f4a85b9c5375dd3ed7f105af5471f19473')
  25. [[ $CARCH = x86_64 ]] && sha1sums[0]='5bd78c20324e6a4aa9f3fafdc6f0155e884d5131'
  26.  
  27. backup=('etc/modprobe.d/broadcom-wl.conf')
  28. install=install
  29.  
  30. _extramodules=extramodules-3.11-ARCH
  31. _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
  32.  
  33. build() {
  34.  
  35.         _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
  36.         cd "${srcdir}"
  37.  
  38.         patch -p1 -i linux-recent.patch
  39.         patch -p1 -i license.patch
  40.  
  41.         make -C /usr/lib/modules/"${_kernver}"/build M=`pwd`
  42. }
  43.  
  44. package() {
  45.         cd "${srcdir}"
  46.  
  47.         install -D -m 644 wl.ko "${pkgdir}/usr/lib/modules/${_extramodules}/wl.ko"
  48.         gzip "${pkgdir}/usr/lib/modules/${_extramodules}/wl.ko"
  49.  
  50.         install -D -m 644 lib/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  51.         install -D -m 644 modprobe.d "${pkgdir}"/etc/modprobe.d/broadcom-wl.conf
  52. }