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

Acerhk

By: a guest on Aug 15th, 2011  |  syntax: Bash  |  size: 1.61 KB  |  views: 129  |  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. # $Id: PKGBUILD 23215 2010-08-08 21:04:28Z cbrannon $
  2. # Maintainer: Corrado Primier <bardo@aur.archlinux.org>
  3. # Contributor: Marco Fister <marco@rda26.net>
  4.  
  5. pkgname=acerhk
  6. _preffix=acerhk
  7. pkgver=0.5.35
  8. pkgrel=25
  9. pkgdesc="Acer hotkey driver"
  10. url="http://www.cakey.de/acerhk/"
  11. arch=('i686')
  12. license=('GPL')
  13. depends=('linux>=3.0.0')
  14. makedepends=('linux-headers>=3.0.0')
  15. source=(http://www.cakey.de/acerhk/archives/${_preffix}-${pkgver}.tgz acerhk.rc
  16.         2.6.30.patch kernelversion.patch 5100.patch 2.6.36.patch)
  17. install=acerhk.install
  18. _kernver=3.0-ARCH
  19.  
  20. build() {
  21.   cd "${srcdir}/${_preffix}-${pkgver}"
  22.   sed -i 's/CFLAGS/EXTRA_CFLAGS/' Makefile
  23.   patch -Np1 -i "${srcdir}/5100.patch" || return 1
  24.   patch -Np1 -i "${srcdir}/2.6.30.patch" || return 1
  25.   patch -Np0 -i "${srcdir}/2.6.36.patch" || return 1
  26.   patch -N -p1 < "$srcdir/kernelversion.patch" || return 1
  27.   sed -i 's@linux/config.h@linux/input.h@' "${srcdir}/${_preffix}-${pkgver}/acerhk.c"
  28.   # Set KERNELSRC.  The makefile tries to autodetect it with uname,
  29.   # but that is unreliable.
  30.   make CONFIG_FUNCTION_TRACER= KERNELSRC="/lib/modules/${_kernver}/build" acerhk.ko || return 1
  31.   install -Dm644 "${srcdir}/${_preffix}-${pkgver}/acerhk.ko" \
  32.     "${pkgdir}/lib/modules/${_kernver}/kernel/drivers/block/acerhk.ko" || return 1
  33.   install -Dm755 "${srcdir}/acerhk.rc" "${pkgdir}/etc/rc.d/acerhk" || return 1
  34. }
  35.  
  36. # vim:set ts=2 sw=2 et:
  37. md5sums=('05255919f312cb76af473a760c284433'
  38.          '935584b3e4bfbb3af8460558e5b98bb5'
  39.          '2a0bc99e5b12e25096441df4d53d7df7'
  40.          'fd2ef062ecbc9d670e1b42aa5866d32d'
  41.           '8966a93e66200a535179cf9eb689fe4d'
  42.           'd257a4e9223ebfde48b9608805df9c99')