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

acerhk pkgbuild

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