File: wrapper_for_deb.patch

package info (click to toggle)
arduino 1%3A1.0.1%2Bdfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 22,476 kB
  • sloc: java: 56,088; cpp: 10,050; ansic: 9,904; makefile: 1,721; xml: 468; perl: 198; sh: 153; python: 62
file content (33 lines) | stat: -rw-r--r-- 1,016 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Description: Tells the wrapper where to look for things in debian.
Author: Scott Howard <showard314@gmail.com>

Index: arduino/build/linux/dist/arduino
===================================================================
--- arduino.orig/build/linux/dist/arduino	2012-05-14 00:00:13.838689370 -0400
+++ arduino/build/linux/dist/arduino	2012-05-14 00:00:44.034690088 -0400
@@ -1,12 +1,10 @@
 #!/bin/sh
  
-APPDIR="$(dirname -- $(readlink -f -- "${0}") )"
+APPDIR=/usr/share/arduino
 
 cd $APPDIR
  
 for LIB in \
-    java/lib/rt.jar \
-    java/lib/tools.jar \
     lib/*.jar \
     ;
 do
@@ -14,9 +12,8 @@
 done
 export CLASSPATH
 
-LD_LIBRARY_PATH=`pwd`/lib${LD_LIBRARY_PATH:+:$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 processing.app.Base "$@"