Advertisement
Guest User

Untitled

a guest
Jan 14th, 2012
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.81 KB | None | 0 0
  1. # Contributor: Austin ( doorknob60 [at] gmail [dot] com )
  2. # Maintainer: Gaetan Bisson <bisson@archlinux.org>
  3.  
  4. pkgname=broadcom-wl
  5. pkgver=5.100.82.112
  6. pkgrel=2
  7. pkgdesc='Broadcom 802.11abgn hybrid Linux networking device driver'
  8. url='http://www.broadcom.com/support/802.11/linux_sta.php'
  9. arch=('i686' 'x86_64')
  10. license=('custom')
  11. depends=('linux')
  12. makedepends=('linux-headers')
  13.  
  14. [[ $CARCH = x86_64 ]] && ARCH=x86_64 || ARCH=x86_32
  15. source=("http://www.broadcom.com/docs/linux_sta/hybrid-portsrc_${ARCH}-v${pkgver//./_}.tar.gz"
  16.         'modprobe.d'
  17.         'linux3.patch'
  18.         'license.patch'
  19.         'semaphore.patch'
  20.         'http://www.mindwerks.net/wp-content/uploads/2011/11/bc_wl_abiupdate.patch')
  21. sha1sums=('01aa32f9e85621253a3f15cf4361bb80d41da3e8'
  22.           '89bf92286ede30dd85304c6c4e42e89cfdc0f60a'
  23.           '3e18f905bbe5e8b99a53d6ecb3b80a919f3531f2'
  24.           'ea7b67982ddc0f56fd3becb9914fd4458fe7d373'
  25.           '105f8e1d48ebe1f25d53859e5ab9326a27435c66'
  26.           '229f41b7c371842bf9c1c81b03f34ee32fcb3310')
  27. [[ $CARCH = x86_64 ]] && sha1sums[0]='5bd78c20324e6a4aa9f3fafdc6f0155e884d5131'
  28.  
  29. backup=('etc/modprobe.d/broadcom-wl.conf')
  30. install=install
  31.  
  32. _extramodules=extramodules-3.2-ARCH
  33. _kernver="$(cat /lib/modules/${_extramodules}/version)"
  34.  
  35. build() {
  36.     cd "${srcdir}"
  37.  
  38.     patch -p1 -i linux3.patch
  39.     patch -p1 -i license.patch
  40.     patch -p1 -i semaphore.patch
  41.         patch -p0 src/wl/sys/wl_linux.c < bc_wl_abiupdate.patch
  42.  
  43.     make -C /lib/modules/"${_kernver}"/build M=`pwd`
  44. }
  45.  
  46. package() {
  47.     cd "${srcdir}"
  48.  
  49.     install -D -m 755 wl.ko "${pkgdir}/lib/modules/${_extramodules}/wl.ko"
  50.     gzip "${pkgdir}/lib/modules/${_extramodules}/wl.ko"
  51.  
  52.     install -D -m 644 lib/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  53.     install -D -m 644 modprobe.d "${pkgdir}"/etc/modprobe.d/broadcom-wl.conf
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement