arduino (0018+dfsg-6) wrapper_for_deb.patch

Summary

 arduino |   20 +++-----------------
 1 file changed, 3 insertions(+), 17 deletions(-)

    
download this patch

Patch contents

Description: Simple wrapper since classpath and LD library are already properly
 assigned at build time. Must be exucted in /usr/share/arduino
Author: Scott Howard <showard314@gmail.com>
Index: arduino/arduino
===================================================================
--- arduino.orig/arduino	2010-11-01 20:45:44.979883976 -0400
+++ arduino/arduino	2010-11-01 20:46:27.837148080 -0400
@@ -1,22 +1,8 @@
 #!/bin/sh
  
-APPDIR="$(dirname -- "${0}")"
+cd /usr/share/arduino
 
-cd $APPDIR
- 
-for LIB in \
-    java/lib/rt.jar \
-    java/lib/tools.jar \
-    lib/*.jar \
-    ;
-do
-    CLASSPATH="${CLASSPATH}:${APPDIR}/${LIB}"
-done
-export CLASSPATH
-
-LD_LIBRARY_PATH=`pwd`/lib:${LD_LIBRARY_PATH}
+LD_LIBRARY_PATH="/usr/lib/jni${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
 export LD_LIBRARY_PATH
 
-export PATH="${APPDIR}/java/bin:${PATH}"
-
-java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel processing.app.Base
+java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -jar /usr/share/arduino/arduino.jar