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

Arduino1.0.1-PKGBUILD

By: a guest on May 22nd, 2012  |  syntax: Bash  |  size: 1.54 KB  |  views: 68  |  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: PyroPeter <googlemail.com@abi1789>
  2. # Modification: bwrsandman
  3. pkgname=arduino
  4. epoch=1
  5. pkgver=1.0.1
  6. pkgrel=3
  7. pkgdesc="Arduino SDK (includes patched avrdude and librxtx)"
  8. arch=('i686' 'x86_64')
  9. url="http://arduino.cc/en/Main/Software"
  10. options=(!strip)
  11. license=('GPL')
  12. depends=('avr-libc' 'libusb-compat' 'java-runtime')
  13. install="arduino.install"
  14. source=("http://arduino.googlecode.com/files/arduino-$pkgver-linux.tgz"
  15.     "http://arduino.googlecode.com/files/arduino-$pkgver-linux64.tgz"
  16.     'arduino'
  17.     'arduino.png'
  18.     'arduino.desktop')
  19. md5sums=('aee761a5edb9a0595ae8ac594e53c206' 'f04b115280481aa66884b297dcde443e' '551304dc658224c867513f6099075f0e' '9e36d33891d5e68d38ec55d1494499a5' 'eebc4d6495864bea99ad057af801afb9')
  20.  
  21. if   [ "$CARCH" == 'i686' ]; then
  22.   unset source[1]
  23.   unset md5sums[1]
  24. elif [ "$CARCH" == 'x86_64' ]; then
  25.   unset source[0]
  26.   unset md5sums[0]
  27. fi
  28.  
  29. package() {
  30.   cd "$srcdir/arduino-$pkgver"
  31.  
  32.   # arduino excutable should accept arguments
  33.   sed -i 's/^java .* processing.app.Base$/\0 "$*"/' arduino
  34.  
  35.   mkdir -p "$pkgdir"/usr/{bin,share/{doc,applications,pixmaps}}
  36.  
  37.   # copy the whole SDK to /usr/share/arduino/
  38.   cp -r . "$pkgdir/usr/share/arduino"
  39.  
  40.   # at least support the FHS a little bit:
  41.   install -m755 "$srcdir/arduino" "$pkgdir/usr/bin/arduino"
  42.   ln -s /usr/share/arduino/reference "$pkgdir/usr/share/doc/arduino"
  43.  
  44.   # desktop icon
  45.   install -m644 "$srcdir/arduino.desktop" "$pkgdir/usr/share/applications/"
  46.   install -m644 "$srcdir/arduino.png" "$pkgdir/usr/share/pixmaps/"
  47. }
clone this paste RAW Paste Data