Want more features on Pastebin? Sign Up, it's FREE!
Guest

synaptics-led-3.0.1-1

By: gothmog on Aug 8th, 2011  |  syntax: None  |  size: 0.90 KB  |  views: 219  |  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: Matthew Monaco <dgbaley27@verizon.net>
  2.  
  3. _kver=3.0.1
  4. _kname=3.0-ARCH
  5.  
  6. pkgname=synaptics-led
  7. pkgver=$_kver
  8. pkgrel=1
  9.  
  10. arch=(i686 x86_64)
  11. license=GPL2
  12. url="http://www.kernel.org"
  13. pkgdesc="Synaptics LED enabled psmouse kernel module"
  14.  
  15. install=${pkgname}.install
  16.  
  17. source=(
  18.         ftp://ftp.kernel.org/pub/linux/kernel/v3.0/linux-$_kver.tar.bz2
  19.         synled.patch
  20. )
  21.  
  22. md5sums=(
  23.         aed949984b878b7fb77ffe9cbee8ce0c
  24.         6d565328f36c6ca20b439f29bffc43bb
  25. )
  26.  
  27. build() {
  28.  
  29.         cd "${srcdir}/linux-$_kver"
  30.        
  31.         rsync -r /usr/src/linux-$_kname/ .
  32.         echo "CONFIG_MOUSE_PS2_SYNAPTICS_LED=y" >> .config
  33.         patch -Np1 -i "${srcdir}/synled.patch"
  34.  
  35.         make ${MAKEFLAGS} drivers/input/mouse/psmouse.ko
  36. }
  37.  
  38. package() {
  39.  
  40.         dira="${srcdir}/linux-${_kver}/drivers/input/mouse"
  41.         dirb="${pkgdir}/lib/modules/${_kname}/updates"
  42.  
  43.         install -D -m 0644 "${dira}/psmouse.ko" "${dirb}/psmouse.ko"
  44.  
  45.         gzip -9 "${dirb}/psmouse.ko"
  46. }
clone this paste RAW Paste Data