Guest User

Untitled

a guest
May 25th, 2017
189
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=rtl8188eu-dkms-git
  2. pkgver=r461.00b5f0d
  3. pkgrel=1
  4. pkgdesc="RTL8188EU driver"
  5. url="https://github.com/lwfinger/rtl8188eu"
  6. arch=('i686' 'x86_64')
  7. license=('GPL')
  8. depends=('dkms' 'linux-headers' 'linux-firmware')
  9. source=("${pkgname}::git+https://github.com/lwfinger/rtl8188eu")
  10. sha256sums=('SKIP')
  11.  
  12. pkgver() {
  13.     cd "${srcdir}/${pkgname}"
  14.     printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  15. }
  16.  
  17. package() {
  18.     install -d "${pkgdir}/etc/modprobe.d"
  19.     echo "blacklist r8188eu" > "${pkgdir}/etc/modprobe.d/r8188eu.conf"
  20.  
  21.     install -d "${pkgdir}/usr/src/8188eu-1.0"
  22.     for i in core dkms.conf hal include Makefile os_dep; do
  23.         cp -a "${srcdir}/${pkgname}/${i}" "${pkgdir}/usr/src/8188eu-1.0"
  24.     done
  25. }
  26.  
  27. post_install() {
  28.     dkms install 8188eu/1.0
  29. }
  30.  
  31. pre_upgrade() {
  32.     pre_remove 1.0
  33. }
  34.  
  35. post_upgrade() {
  36.     post_install 1.0
  37. }
  38.  
  39. pre_remove() {
  40.     dkms remove 8188eu/1.0 --all
  41. }
RAW Paste Data