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

PKGBUILD

By: a guest on Feb 7th, 2013  |  syntax: None  |  size: 1.31 KB  |  views: 173  |  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@gmail.com >
  2.  
  3. pkgname=dkms-8192cu
  4. pkgver=v3.4.4_4749
  5. pkgrel=1
  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=("http://jm-computers.wz.cz/sources/$_pkgname-$pkgver.tar.bz2"
  16.                 "dkms.conf"
  17.                 "blacklist-dkms-8192cu.conf"
  18.                 "https://launchpadlibrarian.net/126334555/use_kthread_run.patch" )
  19.                
  20. md5sums=('fcd611082880456114c08e13a1ab2ceb'
  21.                  'ece254ef09b3268b7bfd27713d69969b'
  22.                  '5f2d28bf3839447bfe762416a89e1a21'
  23.                  '28acff14c65b67e7ec246173cae113c0')
  24.  
  25.  
  26.  
  27. package() {
  28.        
  29.         installDir="$pkgdir/usr/src/$_pkgname-$pkgver"
  30.        
  31.         install -dm755 "$installDir"
  32.         install -m644 "$srcdir/dkms.conf" "$installDir"
  33.         install -dm755 "$pkgdir/etc/modprobe.d"
  34.         install -m644 "$srcdir/blacklist-dkms-8192cu.conf" "$pkgdir/etc/modprobe.d/blacklist-dkms-8192cu.conf"
  35.        
  36.         cd "${srcdir}/${_pkgname}-${pkgver}/"
  37.        
  38.         patch -p1 -i "$srcdir/use_kthread_run.patch"
  39.        
  40.         for d in `find . -type d`
  41.         do
  42.                 install -dm755  "$installDir/$d"
  43.         done
  44.        
  45.         for f in `find . -type f`
  46.         do
  47.                 install -m644 "${srcdir}/${_pkgname}-${pkgver}/$f" "$installDir/$f"
  48.         done
  49.        
  50. }