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

Untitled

By: a guest on Dec 14th, 2012  |  syntax: None  |  size: 1.86 KB  |  views: 60  |  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. # Mantainer: Ivan de Jesús Pompa García <ivan.pompa@gmx.com>
  2. # Contributor: Paolo Stivanin <admin@polslinux.it>
  3. #              Tai Chi Minh Ralph Eastwood <tcmreastwood@gmail.com>
  4. #              Hexchain Tong <i@hexchain.org>
  5.  
  6.  
  7. pkgname=('psmouse-alps-driver')
  8. _patchver=1.1
  9. _dkmsname='psmouse-alps-dst'
  10. pkgver=${_patchver}
  11. pkgrel=2
  12. epoch=2
  13. pkgdesc='psmouse kernel module with support for alpsv1-alpsv6 touchpad'
  14. arch=('i686' 'x86_64')
  15. url='http://www.dahetral.com/'
  16. license=('GPL2')
  17. depends=('dkms')
  18. makedepends=('linux-headers')
  19. conflicts=('psmouse-alps')
  20. provides=('psmouse-alps')
  21. options=('!strip')
  22. install=psmouse.install
  23. source=(
  24.     http://www.dahetral.com/public-download/psmouse-alps-dst-${_patchver}.tbz/at_download/file
  25. )
  26.  
  27. md5sums=(
  28.     '229a765efd5e74e5b3053b4f970bc754'
  29. )
  30.  
  31. build() {
  32.     sed -e 's/input_mt_init_slots(dev, 2);/input_mt_init_slots(dev, 2, 0);/g' \
  33.       -i ${srcdir}/usr/src/psmouse-alps-dst-${_patchver}/src/synaptics.c \
  34.       -i ${srcdir}/usr/src/psmouse-alps-dst-${_patchver}/src/alps.c \
  35.       -i ${srcdir}/usr/src/psmouse-alps-dst-${_patchver}/src/elantech.c \
  36.       -i ${srcdir}/usr/src/psmouse-alps-dst-${_patchver}/src/sentelic.c
  37.     sed -e 's/input_mt_init_slots(dev1, 2);/input_mt_init_slots(dev1, 2, 0);/g' \
  38.       -i ${srcdir}/usr/src/psmouse-alps-dst-${_patchver}/src/synaptics.c \
  39.       -i ${srcdir}/usr/src/psmouse-alps-dst-${_patchver}/src/alps.c
  40.     sed -e 's/input_mt_init_slots(dev, ETP_MAX_FINGERS);/input_mt_init_slots(dev, ETP_MAX_FINGERS, 0);/g' \
  41.       -i ${srcdir}/usr/src/psmouse-alps-dst-${_patchver}/src/elantech.c
  42.     mkdir -p ${pkgdir}/usr/src/${_dkmsname}-${_patchver}/src
  43.     cp -RL ${srcdir}/usr/src/psmouse-alps-dst-${_patchver}/src/* ${pkgdir}/usr/src/${_dkmsname}-${_patchver}/src
  44.     cp -RL ${srcdir}/usr/src/psmouse-alps-dst-${_patchver}/dkms.conf ${pkgdir}/usr/src/${_dkmsname}-${_patchver}
  45. }
clone this paste RAW Paste Data