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

dkms-8192cu PKGBUILD

By: a guest on Jul 27th, 2013  |  syntax: Bash  |  size: 1.41 KB  |  views: 186  |  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: Jan Madaj < madaj.jan at gmail.com >
  2.  
  3. pkgname=dkms-8192cu
  4. pkgver=v3.4.4_4749
  5. pkgrel=7
  6. pkgdesc="Driver for Realtek RTL8188CUS (8188C, 8192C) chipset wireless cards"
  7. arch=('i686' 'x86_64')
  8. url="http://www.realtek.com.tw/"
  9. license=('GPL')
  10. depends=('dkms' 'linux-headers')
  11. conflicts=("8192cu" "rt8192cu")
  12. install=${pkgname}.install
  13. options=(!strip)
  14. _pkgname="8192cu"
  15. source=("https://www.dropbox.com/s/3rrxrg55hmnzr1l/$_pkgname-$pkgver.tar.bz2"
  16.                 "dkms.conf"
  17.                 "blacklist-dkms-8192cu.conf"
  18.                 "use_kthread_run_v2.patch"
  19.                 "fix_310_proc.patch" )
  20.                
  21. md5sums=('f4291ba24e9ff3408c26606ba9400152'
  22.                  'ece254ef09b3268b7bfd27713d69969b'
  23.                  '5f2d28bf3839447bfe762416a89e1a21'
  24.          '7b22f83c62456e4b8310e21b56bb4c2f'
  25.          '345072f62970d27af3599dccc540683b')
  26.  
  27.  
  28. package() {
  29.        
  30.         installDir="$pkgdir/usr/src/$_pkgname-$pkgver"
  31.        
  32.         install -dm755 "$installDir"
  33.         install -m644 "$srcdir/dkms.conf" "$installDir"
  34.         install -dm755 "$pkgdir/etc/modprobe.d"
  35.         install -m644 "$srcdir/blacklist-dkms-8192cu.conf" "$pkgdir/etc/modprobe.d/blacklist-dkms-8192cu.conf"
  36.        
  37.         cd "${srcdir}/${_pkgname}-${pkgver}/"
  38.        
  39.         patch -p1 -i "$srcdir/use_kthread_run_v2.patch"
  40.         patch -p1 -i "$srcdir/fix_310_proc.patch"
  41.        
  42.         for d in `find . -type d`
  43.         do
  44.                 install -dm755  "$installDir/$d"
  45.         done
  46.        
  47.         for f in `find . -type f`
  48.         do
  49.                 install -m644 "${srcdir}/${_pkgname}-${pkgver}/$f" "$installDir/$f"
  50.         done
  51.        
  52. }