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

Shani HP

By: a guest on Apr 9th, 2010  |  syntax: None  |  size: 1.06 KB  |  hits: 168  |  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. pkgname=arduino
  2. pkgver=0018
  3. pkgrel=2
  4. pkgdesc="The Arduino IDE"
  5. arch=('i686' 'x86_64')
  6. url="http://www.arduino.cc/"
  7. license=('GPL')
  8. depends=('avr-libc' 'java-runtime' 'libusb' 'bash')
  9. [ "$CARCH" = i686   ] && source=(http://arduino.googlecode.com/files/${pkgname}-${pkgver}.tgz)
  10. [ "$CARCH" = x86_64 ] && source=(http://arduino.googlecode.com/files/${pkgname}-${pkgver}-64-${pkgrel}.tgz)
  11. build() {
  12.  
  13.   install -d ${pkgdir}/usr/share
  14.   cp -r ${srcdir}/${pkgname}-${pkgver} ${pkgdir}/usr/share/arduino
  15.   find ${pkgdir}/usr/share/arduino -type d -exec chmod 755 '{}' \;
  16.   find ${pkgdir}/usr/share/arduino -type f -exec chmod 644 '{}' \;
  17.   chmod 755 ${pkgdir}/usr/share/arduino/arduino
  18.  
  19.   #fix avrdude permission
  20.   chmod 755 ${pkgdir}/usr/share/arduino/hardware/tools/avrdude
  21.  
  22.   #Generate script to run arduino
  23.   install -d ${pkgdir}/usr/bin
  24.   cat <<EOF > ${pkgdir}/usr/bin/arduino
  25. #!/bin/bash
  26. cd /usr/share/arduino
  27. ./arduino
  28. EOF
  29.   chmod 755 ${pkgdir}/usr/bin/arduino
  30.  
  31. }
  32. md5sums=('86e8719cfc5159136e24bfe9046c7a33')
  33. md5sums=('8815b60bf03e5985ed17f0b4b70dad4c')