Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 11th, 2012  |  syntax: None  |  size: 1.17 KB  |  hits: 42  |  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: nblock <nblock [/at\] archlinux DOT us>
  2. # Contributor: Frederik Alkærsig (FALKER) <havnelisten AT gmail.com>
  3.  
  4. pkgname=thinkfan
  5. pkgver=0.8_alpha2
  6. pkgrel=1
  7. pkgdesc="A minimalist fan control program. Supports the sysfs hwmon interface and thinkpad_acpi"
  8. arch=('i686' 'x86_64')
  9. license=('GPL')
  10. source=(http://downloads.sourceforge.net/project/${pkgname}/${pkgname}-${pkgver}.tar.gz
  11.         "thinkfan"
  12.         "thinkfan-allow_newline_in_temp.patch")
  13. url="http://thinkfan.sourceforge.net/"
  14. backup=('etc/thinkfan.conf')
  15. md5sums=('65832674b32d73720d221fbbaede5489'
  16.          '16fc3a83a1468e3ccaeba67e14ab2177'
  17.          'fda0ab68643187cdbcea1f53be017ac4')
  18.  
  19. build() {
  20.     # Patch to handle newline chars in temp input (https://gist.github.com/2355667)
  21.     # Bug report: http://sourceforge.net/tracker/?func=detail&aid=3487107&group_id=249872&atid=2416828
  22.     patch -p0 -i ${srcdir}/thinkfan-allow_newline_in_temp.patch
  23.  
  24.     cd ${srcdir}/${pkgname}-${pkgver}
  25.     make
  26.     install -D -m755 ${pkgname} ${pkgdir}/usr/sbin/${pkgname}
  27.     install -D -m755 ${srcdir}/${pkgname} ${pkgdir}/etc/rc.d/${pkgname}
  28.                 install -D -m644 README ${pkgdir}/usr/share/doc/${pkgname}/README
  29. }
  30.  
  31. # vim:set ts=2 sw=2 noet: