├── debian ├── compat ├── linkjars ├── source │ ├── format │ └── include-binaries ├── arduino.manpages ├── arduino-core.docs ├── copyright_hints ├── clean ├── icons │ ├── 16x16 │ │ └── apps │ │ │ └── arduino.png │ ├── 24x24 │ │ └── apps │ │ │ └── arduino.png │ ├── 32x32 │ │ └── apps │ │ │ └── arduino.png │ ├── 48x48 │ │ └── apps │ │ │ └── arduino.png │ ├── 128x128 │ │ └── apps │ │ │ └── arduino.png │ └── 256x256 │ │ └── apps │ │ └── arduino.png ├── changelog ├── watch ├── arduino.links ├── arduino-core.links ├── arduino.menu ├── arduino-core.install ├── arduino.desktop ├── patches │ ├── series │ ├── sam_fix.patch │ ├── sam_path_fix.patch │ ├── install_jar_links.patch │ ├── permission_fix.patch │ ├── wrapper_for_deb.patch │ ├── arm_fix.patch │ ├── gpg-disable-check.patch │ ├── PlatformReWrite.patch │ ├── remove_copying_binaries.patch │ ├── no_download_libastylej.patch │ ├── Boards_Manager_Revert.patch │ ├── gpg.patch │ ├── remove_update_warning.patch │ ├── system_libastylej.patch │ ├── path_fix.patch │ ├── build.xml.167.arm_fix.patch │ ├── build.xml.arm_fix.patch │ └── zepto_js.patch ├── arduino.install ├── arduino.README.Debian ├── dist │ ├── arduino-add-groups │ └── cc.arduino.add-groups.policy ├── arduino.1 ├── arduino-add-groups.1 ├── control ├── arduino.sharedmimeinfo ├── permission-checker │ └── arduinopc.java ├── rules ├── arduino.xpm └── copyright ├── put_files.bash ├── save_files.bash ├── README.md └── Arduino_IDE_builder.bash /debian/compat: -------------------------------------------------------------------------------- 1 | 8 2 | -------------------------------------------------------------------------------- /debian/linkjars: -------------------------------------------------------------------------------- 1 | app/lib 2 | -------------------------------------------------------------------------------- /debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /debian/arduino.manpages: -------------------------------------------------------------------------------- 1 | debian/arduino.1 2 | debian/arduino-add-groups.1 3 | -------------------------------------------------------------------------------- /debian/arduino-core.docs: -------------------------------------------------------------------------------- 1 | build/linux/work/examples/ 2 | build/linux/work/reference/ 3 | -------------------------------------------------------------------------------- /debian/copyright_hints: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShorTie8/Arduino_IDE/HEAD/debian/copyright_hints -------------------------------------------------------------------------------- /debian/clean: -------------------------------------------------------------------------------- 1 | arduinopc.jar 2 | build/shared/examples/08.Strings/CharacterAnalysis/.CharacterAnalysis.ino.swp 3 | -------------------------------------------------------------------------------- /debian/icons/16x16/apps/arduino.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShorTie8/Arduino_IDE/HEAD/debian/icons/16x16/apps/arduino.png -------------------------------------------------------------------------------- /debian/icons/24x24/apps/arduino.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShorTie8/Arduino_IDE/HEAD/debian/icons/24x24/apps/arduino.png -------------------------------------------------------------------------------- /debian/icons/32x32/apps/arduino.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShorTie8/Arduino_IDE/HEAD/debian/icons/32x32/apps/arduino.png -------------------------------------------------------------------------------- /debian/icons/48x48/apps/arduino.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShorTie8/Arduino_IDE/HEAD/debian/icons/48x48/apps/arduino.png -------------------------------------------------------------------------------- /debian/icons/128x128/apps/arduino.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShorTie8/Arduino_IDE/HEAD/debian/icons/128x128/apps/arduino.png -------------------------------------------------------------------------------- /debian/icons/256x256/apps/arduino.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShorTie8/Arduino_IDE/HEAD/debian/icons/256x256/apps/arduino.png -------------------------------------------------------------------------------- /debian/changelog: -------------------------------------------------------------------------------- 1 | arduino (2:1.6.5) experimental; urgency=low 2 | 3 | * updated to Arduino 1.6.5 4 | 5 | -- ShorTie Tue, 16 May 2015 04:20:00 -0500 6 | -------------------------------------------------------------------------------- /debian/watch: -------------------------------------------------------------------------------- 1 | version=3 2 | opts=\ 3 | dversionmangle=s/\+dfsg\d*//,\ 4 | uversionmangle=s/00/0\./;s/\-r/\./ \ 5 | https://github.com/arduino/Arduino/tags .*/(\d[\d\.].*)\.tar\.gz 6 | -------------------------------------------------------------------------------- /debian/arduino.links: -------------------------------------------------------------------------------- 1 | /usr/share/java/jna.jar /usr/share/arduino/lib/jna.jar 2 | /usr/share/java/jssc.jar /usr/share/arduino/lib/jssc.jar 3 | /usr/lib/jni/libastylej.so /usr/share/arduino/lib/libastylej.so 4 | 5 | -------------------------------------------------------------------------------- /debian/arduino-core.links: -------------------------------------------------------------------------------- 1 | /usr/share/doc/arduino-core/examples /usr/share/arduino/examples 2 | /usr/share/doc/arduino-core/reference /usr/share/arduino/reference 3 | /usr/share/doc /usr/share/arduino/hardware/tools/avr/share/doc 4 | -------------------------------------------------------------------------------- /debian/arduino.menu: -------------------------------------------------------------------------------- 1 | ?package(arduino):\ 2 | needs="X11"\ 3 | section="Applications/Science/Electronics"\ 4 | title="Arduino"\ 5 | command="arduino" \ 6 | icon="/usr/share/pixmaps/arduino.xpm" 7 | -------------------------------------------------------------------------------- /debian/arduino-core.install: -------------------------------------------------------------------------------- 1 | build/linux/work/hardware/ usr/share/arduino 2 | build/linux/work/libraries/ usr/share/arduino 3 | build/linux/work/tools/ usr/share/arduino 4 | build/linux/work/dist/ usr/share/arduino 5 | format.every.sketch.sh usr/share/arduino 6 | -------------------------------------------------------------------------------- /debian/source/include-binaries: -------------------------------------------------------------------------------- 1 | debian/icons/16x16/apps/arduino.png 2 | debian/icons/24x24/apps/arduino.png 3 | debian/icons/48x48/apps/arduino.png 4 | debian/icons/256x256/apps/arduino.png 5 | debian/icons/128x128/apps/arduino.png 6 | debian/icons/32x32/apps/arduino.png 7 | -------------------------------------------------------------------------------- /put_files.bash: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | 4 | cp -v files/build_files/* Arduino/build 5 | 6 | cp -v files/build-linux_files/* Arduino/build/linux 7 | 8 | cp -v files/build-shared_files/* Arduino/build/shared 9 | 10 | cp -v files/toolchain-avr_files/* Arduino/build/toolchain-avr 11 | 12 | exit 0 13 | 14 | -------------------------------------------------------------------------------- /debian/arduino.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Type=Application 3 | Name=Arduino IDE 4 | GenericName=Create physical computing projects 5 | Exec=arduino 6 | Icon=arduino 7 | Terminal=false 8 | Categories=Development;Engineering;Electronics; 9 | MimeType=text/x-arduino 10 | Keywords=embedded electronics;electronics;avr;microcontroller; 11 | -------------------------------------------------------------------------------- /debian/patches/series: -------------------------------------------------------------------------------- 1 | arm_fix.patch 2 | sam_fix.patch 3 | permission_fix.patch 4 | wrapper_for_deb.patch 5 | install_jar_links.patch 6 | no_download_libastylej.patch 7 | system_libastylej.patch 8 | remove_copying_binaries.patch 9 | remove_update_warning.patch 10 | zepto_js.patch 11 | path_fix.patch 12 | #PlatformReWrite.patch 13 | gpg-disable-check.patch 14 | -------------------------------------------------------------------------------- /debian/arduino.install: -------------------------------------------------------------------------------- 1 | build/linux/work/arduino usr/bin 2 | build/linux/work/lib/ usr/share/arduino 3 | debian/*.xpm usr/share/pixmaps 4 | debian/*.desktop usr/share/applications/ 5 | debian/icons/* usr/share/icons/hicolor 6 | debian/dist/arduino-add-groups /usr/bin 7 | debian/dist/cc.arduino.add-groups.policy /usr/share/polkit-1/actions 8 | arduinopc.jar usr/share/arduino/ 9 | -------------------------------------------------------------------------------- /debian/patches/sam_fix.patch: -------------------------------------------------------------------------------- 1 | diff --git a/build.xml b/build.xml 2 | --- a/build.xml 3 | +++ b/build.xml 4 | @@ -226,7 +226,7 @@ 5 | 6 | 7 | 8 | - 9 | + 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /debian/arduino.README.Debian: -------------------------------------------------------------------------------- 1 | Permissions required for access to USB/Serial ports: 2 | ---------------------------------------------------- 3 | 4 | User must be in the dialout group in order to write to USB/Serial ports. 5 | 6 | I wrote our own java code, in debian/permission-checker, which will ask if the 7 | user would like to be added, then runs a script with pkexec to add the user 8 | to the dialout group. 9 | 10 | --Scott Howard , Dec 12, 2011 11 | 12 | -------------------------------------------------------------------------------- /debian/patches/sam_path_fix.patch: -------------------------------------------------------------------------------- 1 | --- a/linux/work/hardware/arduino/sam/platform.txt 2 | +++ b/linux/work/hardware/arduino/sam/platform.txt 3 | @@ -17,7 +17,7 @@ compiler.warning_flags.default= 4 | compiler.warning_flags.more=-Wall 5 | compiler.warning_flags.all=-Wall -Wextra 6 | 7 | -compiler.path={runtime.tools.arm-none-eabi-gcc.path}/bin/ 8 | +compiler.path=/usr/bin/ 9 | compiler.c.cmd=arm-none-eabi-gcc 10 | compiler.c.flags=-c -g -Os {compiler.warning_flags} -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD 11 | compiler.c.elf.cmd=arm-none-eabi-gcc 12 | -------------------------------------------------------------------------------- /debian/dist/arduino-add-groups: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | uid=${PKEXEC_UID:-${SUDO_UID}} 4 | 5 | if [[ -z $uid ]]; then 6 | echo "Could not determine which user to add to the groups." 7 | exit 2 8 | fi 9 | 10 | login=$(perl -e 'print((getpwuid shift)[0])' $uid) 11 | 12 | #for group in dialout tty; do 13 | for group in dialout; do 14 | if ! groups $login | grep -q "\b$group\b"; then 15 | missing_groups=${missing_groups:+$missing_groups,}$group 16 | fi 17 | done 18 | 19 | if [[ -n $missing_groups ]]; then 20 | exec usermod -a -G $missing_groups $login 21 | else 22 | echo "No required groups are missing for this user." 23 | exit 1 24 | fi 25 | -------------------------------------------------------------------------------- /debian/patches/install_jar_links.patch: -------------------------------------------------------------------------------- 1 | Description: Prevents ant from following symlinks and including library jars 2 | 3 | Index: Arduino-1.6.5/build/build.xml 4 | =================================================================== 5 | --- Arduino-1.6.5.orig/build/build.xml 6 | +++ Arduino-1.6.5/build/build.xml 7 | @@ -72,7 +72,7 @@ 8 | 9 | 10 | 11 | - 12 | + 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /debian/patches/permission_fix.patch: -------------------------------------------------------------------------------- 1 | =================================================================== 2 | Index: Arduino-1.6.5/build/linux/dist/arduino 3 | =================================================================== 4 | --- Arduino-1.6.5.orig/build/linux/dist/arduino 5 | +++ Arduino-1.6.5/build/linux/dist/arduino 6 | @@ -1,5 +1,18 @@ 7 | #!/usr/bin/env bash 8 | 9 | +if [[ `id -u` -ne 0 ]]; then 10 | +# for group in dialout tty; do 11 | + for group in dialout; do 12 | + if ! groups | grep -q "\b$group\b"; then 13 | + missing_groups="$missing_groups\n$group" 14 | + fi 15 | + done 16 | + 17 | + if [[ -n $missing_groups ]] && ! java -jar /usr/share/arduino/arduinopc.jar; then 18 | + pkexec /usr/bin/arduino-add-groups 19 | + fi 20 | +fi 21 | + 22 | CURDIR=`pwd` 23 | APPDIR="$(dirname -- "$(readlink -f -- "${0}")" )" 24 | 25 | -------------------------------------------------------------------------------- /debian/patches/wrapper_for_deb.patch: -------------------------------------------------------------------------------- 1 | Description: Tells the wrapper where to look for things in debian. 2 | Author: Scott Howard 3 | 4 | Index: Arduino-1.6.3/build/linux/dist/arduino 5 | =================================================================== 6 | --- Arduino-1.6.3.orig/build/linux/dist/arduino 7 | +++ Arduino-1.6.3/build/linux/dist/arduino 8 | @@ -14,7 +14,7 @@ if [[ `id -u` -ne 0 ]]; then 9 | fi 10 | 11 | CURDIR=`pwd` 12 | -APPDIR="$(dirname -- "$(readlink -f -- "${0}")" )" 13 | +APPDIR=/usr/share/arduino 14 | 15 | cd "$APPDIR" 16 | 17 | @@ -28,7 +28,7 @@ do 18 | done 19 | export CLASSPATH 20 | 21 | -LD_LIBRARY_PATH=`pwd`/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} 22 | +LD_LIBRARY_PATH="/usr/lib/jni${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" 23 | export LD_LIBRARY_PATH 24 | 25 | export PATH="${APPDIR}/java/bin:${PATH}" 26 | -------------------------------------------------------------------------------- /debian/patches/arm_fix.patch: -------------------------------------------------------------------------------- 1 | Description: Adjust arch to arm for Raspberry Pi 2 | 3 | Index: Arduino-1.6.5/build/build.xml 4 | =================================================================== 5 | --- Arduino-1.6.5.orig/build/build.xml 6 | +++ Arduino-1.6.5/build/build.xml 7 | @@ -17,7 +17,7 @@ 8 | 9 | 10 | 11 | - 12 | + 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /debian/patches/gpg-disable-check.patch: -------------------------------------------------------------------------------- 1 | Index: Arduino-1.6.5/arduino-core/src/cc/arduino/contributions/packages/ContributionsIndexer.java 2 | =================================================================== 3 | --- Arduino-1.6.5.orig/arduino-core/src/cc/arduino/contributions/packages/ContributionsIndexer.java 4 | +++ Arduino-1.6.5/arduino-core/src/cc/arduino/contributions/packages/ContributionsIndexer.java 5 | @@ -79,9 +79,6 @@ public class ContributionsIndexer { 6 | 7 | public void parseIndex() throws Exception { 8 | File defaultIndexFile = getIndexFile(Constants.DEFAULT_INDEX_FILE_NAME); 9 | - if (!isSigned(defaultIndexFile)) { 10 | - throw new SignatureVerificationFailedException(Constants.DEFAULT_INDEX_FILE_NAME); 11 | - } 12 | index = parseIndex(defaultIndexFile); 13 | 14 | File[] indexFiles = preferencesFolder.listFiles(new TestPackageIndexFilenameFilter(new PackageIndexFilenameFilter(Constants.DEFAULT_INDEX_FILE_NAME))); 15 | -------------------------------------------------------------------------------- /debian/dist/cc.arduino.add-groups.policy: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | Arduino 8 | http://arduino.cc/ 9 | 10 | 11 | Add the user to groups required to access USB and serial ports. 12 | Authentication is required to add the current user to the required groups. 13 | arduino 14 | 15 | no 16 | no 17 | auth_admin 18 | 19 | /usr/bin/arduino-add-groups 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /debian/patches/PlatformReWrite.patch: -------------------------------------------------------------------------------- 1 | Index: Arduino-1.6.5/arduino-core/src/processing/app/debug/LegacyTargetPlatform.java 2 | =================================================================== 3 | --- Arduino-1.6.5.orig/arduino-core/src/processing/app/debug/LegacyTargetPlatform.java 4 | +++ Arduino-1.6.5/arduino-core/src/processing/app/debug/LegacyTargetPlatform.java 5 | @@ -119,14 +119,6 @@ public class LegacyTargetPlatform implem 6 | format(_("Error loading {0}"), localPlatformsFile.getAbsolutePath()), e); 7 | } 8 | 9 | - if (!preferences.containsKey("rewriting") || !"disabled".equals(preferences.get("rewriting"))) { 10 | - try { 11 | - rewriteKeysOfOldPlatformsTxtAndWarnAboutIt(); 12 | - } catch (IOException e) { 13 | - throw new TargetPlatformException(e); 14 | - } 15 | - } 16 | - 17 | File progFile = new File(folder, "programmers.txt"); 18 | try { 19 | if (progFile.exists() && progFile.canRead()) { 20 | -------------------------------------------------------------------------------- /save_files.bash: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | 4 | if [[ ! -d files ]]; then 5 | mkdir files 6 | fi 7 | 8 | if [[ ! -d files/build_files ]]; then 9 | mkdir files/build_files 10 | fi 11 | 12 | if [[ ! -d files/build-linux_files ]]; then 13 | mkdir files/build-linux_files 14 | fi 15 | 16 | if [[ ! -d files/build-shared_files ]]; then 17 | mkdir files/build-shared_files 18 | fi 19 | 20 | if [[ ! -d files/toolchain-avr_files ]]; then 21 | mkdir files/toolchain-avr_files 22 | fi 23 | 24 | cp -v Arduino/build/*.zip files/build_files 25 | cp -v Arduino/build/libastyle*.sha files/build_files 26 | cp -v Arduino/build/liblistSerials*.sha files/build_files 27 | 28 | cp -v Arduino/build/linux/avr-gcc*tar* files/build-linux_files 29 | cp -v Arduino/build/linux/avrdude*tar* files/build-linux_files 30 | 31 | cp -v Arduino/build/shared/*.zip files/build-shared_files 32 | 33 | cp -v Arduino/build/toolchain-avr/*tar* files/toolchain-avr_files 34 | cp -v Arduino/build/toolchain-avr/*.zip files/toolchain-avr_files 35 | 36 | exit 0 37 | 38 | -------------------------------------------------------------------------------- /debian/patches/remove_copying_binaries.patch: -------------------------------------------------------------------------------- 1 | Description: Arduino copies precompiled binaries into the build tree, 2 | 3 | =================================================================== 4 | Index: Arduino-1.6.5/build/build.xml 5 | =================================================================== 6 | --- Arduino-1.6.5.orig/build/build.xml 7 | +++ Arduino-1.6.5/build/build.xml 8 | @@ -647,14 +647,6 @@ 9 | 10 | 11 | 12 | - 13 | - 14 | - 15 | - 16 | - 17 | - 18 | - 19 | - 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /debian/patches/no_download_libastylej.patch: -------------------------------------------------------------------------------- 1 | Description: don't download libastylj.so 2 | Index: Arduino-1.6.5/build/build.xml 3 | =================================================================== 4 | --- Arduino-1.6.5.orig/build/build.xml 5 | +++ Arduino-1.6.5/build/build.xml 6 | @@ -640,14 +640,6 @@ 7 | 8 | 9 | 10 | - 11 | - 12 | - 13 | - 14 | - 15 | - 16 | - 17 | - 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /debian/arduino.1: -------------------------------------------------------------------------------- 1 | .\" Hey, EMACS: -*- nroff -*- 2 | .\" First parameter, NAME, should be all caps 3 | .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection 4 | .\" other parameters are allowed: see man(7), man(1) 5 | .TH ARDUINO 1 "April 10, 2010" 6 | .\" Please adjust this date whenever revising the manpage. 7 | .\" 8 | .\" Some roff macros, for reference: 9 | .\" .nh disable hyphenation 10 | .\" .hy enable hyphenation 11 | .\" .ad l left justify 12 | .\" .ad b justify to both left and right margins 13 | .\" .nf disable filling 14 | .\" .fi enable filling 15 | .\" .br insert line break 16 | .\" .sp insert n+1 empty lines 17 | .\" for manpage-specific macros, see man(7) 18 | .SH NAME 19 | arduino \- an IDE and uploader for Arduino development boards. 20 | .SH SYNOPSIS 21 | .B arduino 22 | .SH DESCRIPTION 23 | This program takes no options and will load the IDE in an X11 window. 24 | .SH SEE ALSO 25 | .BR http://www.arduino.cc/ 26 | .SH AUTHOR 27 | arduino was written by . 28 | .PP 29 | This manual page was written by Scott Howard , 30 | for the Debian project (and may be used by others). 31 | -------------------------------------------------------------------------------- /debian/arduino-add-groups.1: -------------------------------------------------------------------------------- 1 | .\" Hey, EMACS: -*- nroff -*- 2 | .\" First parameter, NAME, should be all caps 3 | .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection 4 | .\" other parameters are allowed: see man(7), man(1) 5 | .TH ARDUINO-ADD-GROUPS 1 "December 23, 2011" 6 | .\" Please adjust this date whenever revising the manpage. 7 | .\" 8 | .\" Some roff macros, for reference: 9 | .\" .nh disable hyphenation 10 | .\" .hy enable hyphenation 11 | .\" .ad l left justify 12 | .\" .ad b justify to both left and right margins 13 | .\" .nf disable filling 14 | .\" .fi enable filling 15 | .\" .br insert line break 16 | .\" .sp insert n+1 empty lines 17 | .\" for manpage-specific macros, see man(7) 18 | .SH NAME 19 | arduino-add-groups \- permission fixer for Arduino development boards. 20 | .SH SYNOPSIS 21 | .B arduino-add-groups 22 | .SH DESCRIPTION 23 | This program takes no options and will add current user to the dialout group. 24 | .SH SEE ALSO 25 | .BR http://www.arduino.cc/ 26 | .SH AUTHOR 27 | arduino-add-groups was written by mavit 28 | .PP 29 | This manual page was written by Scott Howard , 30 | for the Debian project (and may be used by others). 31 | -------------------------------------------------------------------------------- /debian/patches/Boards_Manager_Revert.patch: -------------------------------------------------------------------------------- 1 | diff --git a/arduino-core/src/cc/arduino/contributions/packages/HostDependentDownloadableContribution.java b/arduino-core/src/cc/arduino/contributions/packages/HostDependentDownloadableContribution.java 2 | index 93a3420..e63f332 100644 3 | --- a/arduino-core/src/cc/arduino/contributions/packages/HostDependentDownloadableContribution.java 4 | +++ b/arduino-core/src/cc/arduino/contributions/packages/HostDependentDownloadableContribution.java 5 | @@ -50,17 +50,7 @@ public abstract class HostDependentDownloadableContribution extends Downloadable 6 | String host = getHost(); 7 | 8 | if (osName.contains("Linux")) { 9 | - if (osArch.equals("arm")) { 10 | - // Raspberry PI, BBB or other ARM based host 11 | - 12 | - // PI: "arm-linux-gnueabihf" 13 | - // Arch-linux on PI2: "armv7l-unknown-linux-gnueabihf" 14 | - // Raspbian on PI2: "arm-linux-gnueabihf" 15 | - // Ubuntu Mate on PI2: "arm-linux-gnueabihf" 16 | - // Debian 7.9 on BBB: "arm-linux-gnueabihf" 17 | - // Raspbian on PI Zero: "arm-linux-gnueabihf" 18 | - return host.matches("arm.*-linux-gnueabihf"); 19 | - } else if (osArch.contains("amd64")) { 20 | + if (osArch.contains("amd64")) { 21 | return host.matches("x86_64-.*linux-gnu"); 22 | } else { 23 | return host.matches("i[3456]86-.*linux-gnu"); 24 | -------------------------------------------------------------------------------- /debian/patches/gpg.patch: -------------------------------------------------------------------------------- 1 | Index: Arduino-1.6.4/.classpath 2 | =================================================================== 3 | --- Arduino-1.6.4.orig/.classpath 4 | +++ Arduino-1.6.4/.classpath 5 | @@ -18,8 +18,6 @@ 6 | 7 | 8 | 9 | - 10 | - 11 | 12 | 13 | 14 | Index: Arduino-1.6.4/app/.classpath 15 | =================================================================== 16 | --- Arduino-1.6.4.orig/app/.classpath 17 | +++ Arduino-1.6.4/app/.classpath 18 | @@ -19,8 +19,6 @@ 19 | 20 | 21 | 22 | - 23 | - 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /debian/patches/remove_update_warning.patch: -------------------------------------------------------------------------------- 1 | diff --git a/app/src/processing/app/UpdateCheck.java b/app/src/processing/app/UpdateCheck.java 2 | index 39c5550..96c59af 100644 3 | --- a/app/src/processing/app/UpdateCheck.java 4 | +++ b/app/src/processing/app/UpdateCheck.java 5 | @@ -100,26 +100,6 @@ public class UpdateCheck implements Runnable { 6 | } 7 | PreferencesData.set("update.last", String.valueOf(now)); 8 | 9 | - String prompt = 10 | - tr("A new version of Arduino is available,\n" + 11 | - "would you like to visit the Arduino download page?"); 12 | - 13 | - if (base.activeEditor != null) { 14 | - if (latest > BaseNoGui.REVISION) { 15 | - Object[] options = { tr("Yes"), tr("No") }; 16 | - int result = JOptionPane.showOptionDialog(base.activeEditor, 17 | - prompt, 18 | - tr("Update"), 19 | - JOptionPane.YES_NO_OPTION, 20 | - JOptionPane.QUESTION_MESSAGE, 21 | - null, 22 | - options, 23 | - options[0]); 24 | - if (result == JOptionPane.YES_OPTION) { 25 | - Base.openURL(tr("http://www.arduino.cc/en/Main/Software")); 26 | - } 27 | - } 28 | - } 29 | } catch (Exception e) { 30 | //e.printStackTrace(); 31 | //System.err.println("Error while trying to check for an update."); 32 | -------------------------------------------------------------------------------- /debian/control: -------------------------------------------------------------------------------- 1 | Source: arduino 2 | Section: electronics 3 | Priority: extra 4 | Maintainer: ShorTie 5 | Uploaders: Philip Hands 6 | Build-Depends: debhelper, javahelper, default-jdk, default-jre, libastylej-jni, 7 | libjssc-java, libjna-java, libjsch-java, libjmdns-java, 8 | libcommons-logging-java, libcommons-httpclient-java, libcommons-exec-java, ant, 9 | astyle, extra-xdg-menus, policykit-1, default-jre, libastylej-jni, 10 | avr-libc, avrdude, gcc, gcc-avr, bossa-cli, gcc-arm-none-eabi 11 | Standards-Version: 3.9.5 12 | Homepage: http://www.arduino.cc 13 | Vcs-Git: git://anonscm.debian.org/collab-maint/arduino.git 14 | Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/arduino.git 15 | 16 | 17 | Package: arduino 18 | Architecture: all 19 | Depends: ${java:Depends}, ${misc:Depends}, 20 | arduino-core (= ${binary:Version}), libastylej-jni 21 | Recommends: extra-xdg-menus, policykit-1, astyle 22 | Description: AVR development board IDE and built-in libraries 23 | Arduino is an open-source electronics prototyping platform based on 24 | flexible, easy-to-use hardware and software. It's intended for artists, 25 | designers, hobbyists, and anyone interested in creating interactive 26 | objects or environments. 27 | . 28 | This package will install the integrated development environment that 29 | allows for program writing, code verfication, compiling, and uploading 30 | to the Arduino development board. Libraries and example code will also 31 | be installed. 32 | 33 | Package: arduino-core 34 | Architecture: all 35 | Depends: ${misc:Depends}, gcc-avr (>= 4.7.0), avrdude, gcc, avr-libc (>= 1.8.0) 36 | Recommends: bossa-cli 37 | Suggests: arduino-mk 38 | Description: Code, examples, and libraries for the Arduino platform 39 | Arduino is an open hardware microcontroller platform. This package contains 40 | the minimal set of tools to allow one to program an Arduino. It also contains 41 | examples and libraries. For a CLI, see the 'arduino-mk' package. 42 | . 43 | This package does not include the Java based Integrated Development 44 | Environment, which can be found in the 'arduino' package. 45 | -------------------------------------------------------------------------------- /debian/arduino.sharedmimeinfo: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Arduino source code 5 | شفرة مصدر Arduino 6 | Kryničny kod Arduino 7 | Изходен код на Arduino 8 | codi font en Arduino 9 | Arduinokildekode 10 | Arduino-Quelltext 11 | πηγαίος κώδικας Arduino 12 | Arduino source code 13 | Arduino-fontkodo 14 | código fuente en Arduino 15 | Arduino iturburu-kodea 16 | Arduino-lähdekoodi 17 | code source Arduino 18 | cód foinseach Arduino 19 | Arduino-forráskód 20 | Kode program Arduino 21 | Codice sorgente Arduino 22 | Arduino ソースコード 23 | Arduino pradinis kodas 24 | Arduino pirmkods 25 | Kod sumber Arduino 26 | Arduino-kildekode 27 | Arduino-broncode 28 | Arduino-kjeldekode 29 | Kod źródłowy Arduino 30 | código fonte Arduino 31 | Código fonte Arduino 32 | исходный код Arduino 33 | Kod burues Arduino 34 | Arduino-källkod 35 | Вихідний код на мові Arduino 36 | Mã nguồn Arduino 37 | Arduino 源代码 38 | Arduino 源代碼 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Arduino_IDE_builder.bash 2 | 3 | Living in the land of ARM I found a need to write this 4 | 5 | Although it was written for ARM primarily, I do believe it will work on any Linux box. 6 | And with a little help Mac && Windows too... 7 | 8 | What it does is use github to get all the various programs. 9 | Compiles them and builds the IDE in 1 simple script .. :)~ 10 | 11 | Normally, Update_git is the only 1 needed to be un-rem'd 12 | The rest are mainly for if your playing with the sources, and my debug, lol. 13 | 14 | ### Usage 15 | ``` 16 | sudo ./Arduino_IDE_builder.bash 17 | ``` 18 | 19 | ### To run after building is done 20 | ``` 21 | sudo Arduino/build/linux/work/./arduino 22 | ``` 23 | 24 | ### To install 25 | ``` 26 | sudo Arduino/build/linux/work/./install.sh 27 | ``` 28 | 29 | I've tested it on a Raspberry Pi2, Odroid C1 and Debian 8.20 i386, and all seems well after dependency are meet. 30 | 31 | ``` 32 | apt-get install -y mercurial subversion build-essential gperf bison ant texinfo zip automake flex libusb-dev libusb-1.0-0-dev libtinfo-dev pkg-config libwxbase3.0-dev libtool 33 | ``` 34 | 35 | The latest Raspbian already has Java 8, so no problems there. 36 | If it is not already installed, like on the Odroid and Debian i386, I did it as follows 37 | 38 | ``` 39 | sudo sh -c 'echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" >> /etc/apt/sources.list' 40 | sudo sh -c 'echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" >> /etc/apt/sources.list' 41 | sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886 42 | sudo apt-get update 43 | sudo apt-get install oracle-java8-installer 44 | ``` 45 | 46 | 47 | Not all options are fully implemented yet, 48 | But Silence_is_Golden is enabled as it sed's through toolchain-avr on the initial git clone to silence it and make things easier to follow. 49 | So to do/un-do it, just 'rm -rf Arduino/build/toolchain-avr' and re-run the script. 50 | You can save some download time by coping all the files for toolchain-avr downloads over as git clone is working if you have them. 51 | 52 | 53 | Ya'll Have A Great Day 54 | 55 | ShorTie 56 | 57 | 58 | 59 | 60 | 61 | 62 | ### Old 63 | 64 | A Debian .deb builder for ARM Boards 65 | 66 | From the within the Arduino directory 67 | 68 | ``` 69 | ln -s Arduino_IDE/debian debian 70 | dpkg-buildpackage -uc -b -tc 71 | ``` 72 | -------------------------------------------------------------------------------- /debian/patches/system_libastylej.patch: -------------------------------------------------------------------------------- 1 | Description: Use system astyle, upstream uses a custom version 2 | 3 | Index: Arduino-1.6.5/app/src/cc/arduino/packages/formatter/AStyleInterface.java 4 | =================================================================== 5 | --- Arduino-1.6.5.orig/app/src/cc/arduino/packages/formatter/AStyleInterface.java 6 | +++ Arduino-1.6.5/app/src/cc/arduino/packages/formatter/AStyleInterface.java 7 | @@ -27,7 +27,6 @@ 8 | * Copyright 2015 Arduino LLC (http://www.arduino.cc/) 9 | */ 10 | 11 | -package cc.arduino.packages.formatter; 12 | 13 | import processing.app.Base; 14 | 15 | Index: Arduino-1.6.5/app/src/cc/arduino/packages/formatter/AStyle.java 16 | =================================================================== 17 | --- Arduino-1.6.5.orig/app/src/cc/arduino/packages/formatter/AStyle.java 18 | +++ Arduino-1.6.5/app/src/cc/arduino/packages/formatter/AStyle.java 19 | @@ -29,7 +29,6 @@ 20 | * Copyright 2015 Arduino LLC (http://www.arduino.cc/) 21 | */ 22 | 23 | -package cc.arduino.packages.formatter; 24 | 25 | import processing.app.Base; 26 | import processing.app.BaseNoGui; 27 | Index: Arduino-1.6.5/app/src/processing/app/Editor.java 28 | =================================================================== 29 | --- Arduino-1.6.5.orig/app/src/processing/app/Editor.java 30 | +++ Arduino-1.6.5/app/src/processing/app/Editor.java 31 | @@ -1058,10 +1058,7 @@ public class Editor extends JFrame imple 32 | private void addInternalTools(JMenu menu) { 33 | JMenuItem item; 34 | 35 | - item = createToolMenuItem("cc.arduino.packages.formatter.AStyle"); 36 | - if (item == null) { 37 | - throw new NullPointerException("Tool cc.arduino.packages.formatter.AStyle unavailable"); 38 | - } 39 | + item = createToolMenuItem("AStyle"); 40 | item.setName("menuToolsAutoFormat"); 41 | int modifiers = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); 42 | item.setAccelerator(KeyStroke.getKeyStroke('T', modifiers)); 43 | @@ -2748,10 +2745,7 @@ public class Editor extends JFrame imple 44 | 45 | menu.addSeparator(); 46 | 47 | - JMenuItem item = createToolMenuItem("cc.arduino.packages.formatter.AStyle"); 48 | - if (item == null) { 49 | - throw new NullPointerException("Tool cc.arduino.packages.formatter.AStyle unavailable"); 50 | - } 51 | + JMenuItem item = createToolMenuItem("AStyle"); 52 | item.setName("menuToolsAutoFormat"); 53 | 54 | menu.add(item); 55 | -------------------------------------------------------------------------------- /debian/patches/path_fix.patch: -------------------------------------------------------------------------------- 1 | Index: Arduino-1.6.5/hardware/arduino/avr/platform.txt 2 | =================================================================== 3 | --- Arduino-1.6.5.orig/hardware/arduino/avr/platform.txt 4 | +++ Arduino-1.6.5/hardware/arduino/avr/platform.txt 5 | @@ -18,7 +18,7 @@ compiler.warning_flags.more=-Wall 6 | compiler.warning_flags.all=-Wall -Wextra 7 | 8 | # Default "compiler.path" is correct, change only if you want to overidde the initial value 9 | -compiler.path={runtime.tools.avr-gcc.path}/bin/ 10 | +compiler.path=/usr/bin/ 11 | compiler.c.cmd=avr-gcc 12 | compiler.c.flags=-c -g -Os {compiler.warning_flags} -ffunction-sections -fdata-sections -MMD 13 | # -w flag added to avoid printing a wrong warning http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59396 14 | @@ -85,9 +85,9 @@ recipe.size.regex.eeprom=^(?:\.eeprom)\s 15 | # AVR Uploader/Programmers tools 16 | # ------------------------------ 17 | 18 | -tools.avrdude.path={runtime.tools.avrdude.path} 19 | -tools.avrdude.cmd.path={path}/bin/avrdude 20 | -tools.avrdude.config.path={path}/etc/avrdude.conf 21 | +tools.avrdude.path=/usr/ 22 | +tools.avrdude.cmd.path=/usr/bin/avrdude 23 | +tools.avrdude.config.path=/etc/avrdude.conf 24 | 25 | tools.avrdude.upload.params.verbose=-v 26 | tools.avrdude.upload.params.quiet=-q -q 27 | @@ -103,7 +103,7 @@ tools.avrdude.erase.pattern="{cmd.path}" 28 | 29 | tools.avrdude.bootloader.params.verbose=-v 30 | tools.avrdude.bootloader.params.quiet=-q -q 31 | -tools.avrdude.bootloader.pattern="{cmd.path}" "-C{config.path}" {bootloader.verbose} -p{build.mcu} -c{protocol} {program.extra_params} "-Uflash:w:{runtime.platform.path}/bootloaders/{bootloader.file}:i" -Ulock:w:{bootloader.lock_bits}:m 32 | +tools.avrdude.bootloader.pattern="{cmd.path}" "-C{config.path}" {bootloader.verbose} -p{build.mcu} -c{protocol} {program.extra_params} "-Uflash:w:/usr/share/arduino/hardware/arduino/avr/bootloaders/{bootloader.file}:i" -Ulock:w:{bootloader.lock_bits}:m 33 | 34 | 35 | # USB Default Flags 36 | Index: Arduino-1.6.5/hardware/arduino/sam/platform.txt 37 | =================================================================== 38 | --- Arduino-1.6.5.orig/hardware/arduino/sam/platform.txt 39 | +++ Arduino-1.6.5/hardware/arduino/sam/platform.txt 40 | @@ -17,7 +17,7 @@ compiler.warning_flags.default= 41 | compiler.warning_flags.more=-Wall 42 | compiler.warning_flags.all=-Wall -Wextra 43 | 44 | -compiler.path={runtime.tools.arm-none-eabi-gcc.path}/bin/ 45 | +compiler.path=/usr/bin/ 46 | compiler.c.cmd=arm-none-eabi-gcc 47 | compiler.c.flags=-c -g -Os {compiler.warning_flags} -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD 48 | compiler.c.elf.cmd=arm-none-eabi-gcc 49 | @@ -92,7 +92,7 @@ recipe.size.regex=\.text\s+([0-9]+).* 50 | # SAM3 Uploader tools 51 | # ------------------- 52 | 53 | -tools.bossac.path={runtime.tools.bossac.path} 54 | +tools.bossac.path=/usr/bin/ 55 | tools.bossac.cmd=bossac 56 | tools.bossac.cmd.windows=bossac.exe 57 | 58 | -------------------------------------------------------------------------------- /debian/permission-checker/arduinopc.java: -------------------------------------------------------------------------------- 1 | /* 2 | arduino permission checker prompts the user about required device permissions 3 | Copyright (C) 2012 Scott Howard 4 | 5 | This program is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU General Public License 7 | as published by the Free Software Foundation; either version 2 8 | of the License, or (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18 | */ 19 | //javac Example.java 20 | //jar cfe Example.jar Example *.class 21 | //java -jar Example.jar 22 | 23 | import java.awt.event.ActionEvent; 24 | import java.awt.event.ActionListener; 25 | 26 | import javax.swing.JButton; 27 | import javax.swing.JFrame; 28 | import javax.swing.JPanel; 29 | import javax.swing.JLabel; 30 | import javax.swing.SwingUtilities; 31 | 32 | 33 | public class arduinopc extends JFrame { 34 | 35 | public arduinopc() { 36 | initUI(); 37 | } 38 | 39 | public final void initUI() { 40 | 41 | JPanel panel = new JPanel(); 42 | getContentPane().add(panel); 43 | 44 | // panel.setLayout(null); 45 | 46 | JButton ignoreButton = new JButton("Ignore"); 47 | //ignoreButton.setBounds(50, 60, 80, 30); 48 | ignoreButton.addActionListener(new ActionListener() { 49 | public void actionPerformed(ActionEvent event) { 50 | System.exit(0); 51 | } 52 | }); 53 | 54 | JButton addButton = new JButton("Add"); 55 | //addButton.setBounds(150, 60, 80, 30); 56 | addButton.addActionListener(new ActionListener() { 57 | public void actionPerformed(ActionEvent event) { 58 | System.exit(1); 59 | } 60 | }); 61 | 62 | //JLabel label = new JLabel("You need to be a member of the \"dailout\"
group to upload code to an Arduino
microcontroller over the USB or
serial ports.
"); 63 | //label.setBounds(10,10,300,100); 64 | panel.add(new JLabel("You need to be added to the \"dialout\"
group to upload code to an Arduino
microcontroller over the USB or
serial ports.

Click \"Add\" below to be added.

You must log out and log in again
before any group changes
will take effect.", JLabel.CENTER)); 65 | //label.setFont(new Font("Georgia", Font.PLAIN, 14)); 66 | //label.setForeground(new Color(50, 50, 25)); 67 | //label.setOpaque(true); 68 | 69 | 70 | //panel.add(label);//, BorderLayout.CENTER); 71 | panel.add(ignoreButton); 72 | panel.add(addButton); 73 | 74 | 75 | 76 | setTitle("Arduino Permission Checker"); 77 | setSize(300, 250); 78 | setLocationRelativeTo(null); 79 | setDefaultCloseOperation(EXIT_ON_CLOSE); 80 | } 81 | 82 | public static void main(String[] args) { 83 | SwingUtilities.invokeLater(new Runnable() { 84 | public void run() { 85 | arduinopc ex = new arduinopc(); 86 | ex.setVisible(true); 87 | } 88 | }); 89 | } 90 | } 91 | -------------------------------------------------------------------------------- /debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | # Uncomment this to turn on verbose mode. 4 | export DH_VERBOSE=1 5 | 6 | export JAVA_HOME=/usr/lib/jvm/default-java 7 | export CLASSPATH=\ 8 | /usr/share/java/jna.jar:\ 9 | /usr/share/java/jssc.jar:\ 10 | /usr/share/java/jsch.jar:\ 11 | /usr/share/java/jmdns.jar:\ 12 | /usr/share/java/commons-logging.jar:\ 13 | /usr/share/java/commons-httpclient.jar:\ 14 | /usr/share/java/commons-exec.jar 15 | 16 | SVNTAG=$(shell dpkg-parsechangelog | grep Version | cut -f2 -d" " | sed 's/[0-9]*:\([0-9].*\)+dfsg2-[0-9]/\1/') 17 | 18 | %: 19 | dh $@ --with javahelper 20 | 21 | override_dh_clean: 22 | cd arduino-core && ant clean 23 | cd build && ant clean 24 | rm -f debian/permission-checker/*.class 25 | dh_clean 26 | 27 | override_jh_build: 28 | jh_linkjars 29 | mkdir -p build/linux/work/hardware/tools 30 | cd arduino-core && ant 31 | cd build && ant 32 | rm -f build/linux/work/lib/version.txt && echo $(SVNTAG) > build/linux/work/lib/version.txt #comment out after beta 33 | javac debian/permission-checker/arduinopc.java 34 | cd debian/permission-checker && jar cfe arduinopc.jar arduinopc *.class 35 | mv debian/permission-checker/*.jar . 36 | 37 | 38 | override_dh_installchangelogs: 39 | dh_installchangelogs -k build/linux/work/revisions.txt 40 | 41 | override_dh_compress: 42 | dh_compress -X.ino 43 | 44 | override_dh_install: 45 | find build/linux/work -type d -empty -delete 46 | dh_install -Xlicense -XLICENSE -XLicense -XMangler/make.sh -X.elf -X.a -X.lib -X.min.js 47 | mkdir -p debian/arduino-core/usr/share/arduino/lib 48 | mv debian/arduino/usr/share/arduino/lib/*.txt debian/arduino-core/usr/share/arduino/lib 49 | cp hardware/arduino/sam/variants/arduino_due_x/libsam_sam3x8e_gcc_rel.* debian/arduino-core/usr/share/arduino/hardware/arduino/sam/variants/arduino_due_x 50 | chmod +x \ 51 | debian/arduino-core/usr/share/arduino/hardware/arduino/avr/bootloaders/optiboot/makeall \ 52 | debian/arduino-core/usr/share/arduino/hardware/arduino/avr/firmwares/wifishield/scripts/ArduinoWifiShield_upgrade.sh \ 53 | debian/arduino-core/usr/share/arduino/hardware/arduino/avr/firmwares/wifishield/scripts/ArduinoWifiShield_upgrade_mac.sh \ 54 | debian/arduino-core/usr/share/arduino/hardware/arduino/sam/system/CMSIS/CMSIS/Documentation/DSP_Lib/html/installdox \ 55 | debian/arduino-core/usr/share/arduino/libraries/WiFi/extras/scripts/ArduinoWifiShield_upgrade.sh 56 | 57 | override_dh_installdocs: 58 | dh_installdocs 59 | 60 | override_jh_depends: 61 | jh_depends -jdefault 62 | 63 | copyright_check: 64 | ${MAKE} -f /usr/share/cdbs/1/rules/utils.mk debian/stamp-copyright-check 65 | rm debian/stamp-copyright-check 66 | 67 | DESTDIR=$(CURDIR)/debian/Arduino-$(SVNTAG) 68 | TARGZFILE=arduino_$(SVNTAG).orig.tar.gz 69 | TARXZFILE=arduino_$(SVNTAG)+dfsg2.orig.tar.xz 70 | 71 | get-orig-source: 72 | uscan --download-current-version --rename 73 | jh_repack --version $(SVNTAG) ../arduino_$(SVNTAG) 74 | tar -xzf ../$(TARGZFILE) -C debian/ 75 | find $(DESTDIR) -type f -iname *.jar -or -iname *.tgz -or -iname *.so\ 76 | -or -iname .cvsignore -or -iname *.bz2 -or -iname *macosx*\ 77 | -or -iname *windows* -or -iname *.exe -or -iname *.dll\ 78 | -or -iname *.elf -or -iname *.min.js | xargs -n1 rm -rf;\ 79 | rm -rf $(DESTDIR)/build/linux/dist/tools;\ 80 | #upstream set a bunch of files as execultable that should not be. remove the -x bit 81 | #find $(DESTDIR) -type f -iname *.jpg -or -iname *.java -or -iname *.pde -or -iname *.h -or -iname *.cpp -or -iname *.c -or -iname makefile -or -iname key*.txt -or -iname key*.gz -or -iname pref*.txt -or -iname '*.txt' -print0 | xargs -0 chmod -x;\ 82 | tar Jcf $(CURDIR)/../$(TARXZFILE) -C $(CURDIR)/debian Arduino-1.6.5;\ 83 | rm -fr $(DESTDIR);\ 84 | rm -fr ../$(TARGZFILE) 85 | 86 | -------------------------------------------------------------------------------- /debian/arduino.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char * arduino_xpm[] = { 3 | "32 32 257 2", 4 | " c None", 5 | ". c #02797E", 6 | "+ c #057C81", 7 | "@ c #097D82", 8 | "# c #239095", 9 | "$ c #43A6AA", 10 | "% c #51B1B5", 11 | "& c #61BCC0", 12 | "* c #5EBCBF", 13 | "= c #61BDC0", 14 | "- c #51B3B6", 15 | "; c #43A8AC", 16 | "> c #239196", 17 | ", c #097E82", 18 | "' c #0B7E83", 19 | ") c #3CA0A4", 20 | "! c #59B8BC", 21 | "~ c #3FAFB4", 22 | "{ c #1FA4A9", 23 | "] c #109EA4", 24 | "^ c #00989E", 25 | "/ c #1FA4AA", 26 | "( c #3FB1B5", 27 | "_ c #5ABABE", 28 | ": c #3CA1A6", 29 | "< c #0C7F83", 30 | "[ c #31989C", 31 | "} c #55B4B8", 32 | "| c #26A6AB", 33 | "1 c #01989E", 34 | "2 c #00999F", 35 | "3 c #009AA0", 36 | "4 c #009AA1", 37 | "5 c #26A7AC", 38 | "6 c #54B6BB", 39 | "7 c #319A9E", 40 | "8 c #087C81", 41 | "9 c #44A2A7", 42 | "0 c #31A7AC", 43 | "a c #03989E", 44 | "b c #009BA1", 45 | "c c #009CA2", 46 | "d c #009CA3", 47 | "e c #009DA3", 48 | "f c #03999F", 49 | "g c #31ABB0", 50 | "h c #47A6AA", 51 | "i c #0A7D82", 52 | "j c #4CA6AB", 53 | "k c #1EA0A5", 54 | "l c #009EA4", 55 | "m c #009EA5", 56 | "n c #009FA5", 57 | "o c #1BA3A8", 58 | "p c #4CA9AD", 59 | "q c #047A7F", 60 | "r c #43A1A5", 61 | "s c #129A9F", 62 | "t c #009FA6", 63 | "u c #00A0A6", 64 | "v c #00A1A7", 65 | "w c #00A1A8", 66 | "x c #129FA5", 67 | "y c #43A4A8", 68 | "z c #369499", 69 | "A c #1B9BA0", 70 | "B c #00979D", 71 | "C c #009DA4", 72 | "D c #00A0A7", 73 | "E c #00A2A9", 74 | "F c #00A3A9", 75 | "G c #00A3AA", 76 | "H c #00A4AA", 77 | "I c #1BA1A7", 78 | "J c #379599", 79 | "K c #1B8489", 80 | "L c #2D999E", 81 | "M c #00969C", 82 | "N c #00A4AB", 83 | "O c #00A5AC", 84 | "P c #00A6AC", 85 | "Q c #00A6AD", 86 | "R c #2C9EA3", 87 | "S c #1A8488", 88 | "T c #3A989C", 89 | "U c #019197", 90 | "V c #00A7AD", 91 | "W c #00A8AE", 92 | "X c #00A8AF", 93 | "Y c #3B9A9E", 94 | "Z c #1D8488", 95 | "` c #1C9095", 96 | " . c #00959B", 97 | ".. c #40B6BA", 98 | "+. c #AFE1E3", 99 | "@. c #EFF9FA", 100 | "#. c #FFFFFF", 101 | "$. c #DFF4F4", 102 | "%. c #9FDDE0", 103 | "&. c #20B4B9", 104 | "*. c #00AAB0", 105 | "=. c #00AAB1", 106 | "-. c #00ABB1", 107 | ";. c #20B5BA", 108 | ">. c #9FDEE1", 109 | ",. c #DFF4F5", 110 | "'. c #AFE2E4", 111 | "). c #40B7BC", 112 | "!. c #1B9499", 113 | "~. c #1F8589", 114 | "{. c #359296", 115 | "]. c #008A90", 116 | "^. c #9FDADC", 117 | "/. c #EFFAFA", 118 | "(. c #61CBCE", 119 | "_. c #01ABB2", 120 | ":. c #01ACB2", 121 | "<. c #61CBCF", 122 | "[. c #9FDADD", 123 | "}. c #009197", 124 | "|. c #359295", 125 | "1. c #268C90", 126 | "2. c #70C6CA", 127 | "3. c #BFE6E8", 128 | "4. c #50BCC1", 129 | "5. c #40B8BC", 130 | "6. c #60C6C9", 131 | "7. c #60C7CB", 132 | "8. c #40B9BE", 133 | "9. c #50BEC2", 134 | "0. c #BFE7E8", 135 | "a. c #70C7CB", 136 | "b. c #128388", 137 | "c. c #009399", 138 | "d. c #EFF9F9", 139 | "e. c #9FD9DB", 140 | "f. c #009BA2", 141 | "g. c #11A9AE", 142 | "h. c #BFE9EA", 143 | "i. c #BFE9EB", 144 | "j. c #11AAB0", 145 | "k. c #11A8AD", 146 | "l. c #10A4AA", 147 | "m. c #13868A", 148 | "n. c #037D82", 149 | "o. c #00949A", 150 | "p. c #40B1B6", 151 | "q. c #109EA3", 152 | "r. c #109EA5", 153 | "s. c #40B4B9", 154 | "t. c #40B6BC", 155 | "u. c #11A7AD", 156 | "v. c #11A9AF", 157 | "w. c #CFEEF0", 158 | "x. c #11ABB1", 159 | "y. c #11A8AE", 160 | "z. c #71CACE", 161 | "A. c #10A1A7", 162 | "B. c #109FA6", 163 | "C. c #40B3B8", 164 | "D. c #037F84", 165 | "E. c #027D82", 166 | "F. c #40B0B5", 167 | "G. c #BFE4E6", 168 | "H. c #00969D", 169 | "I. c #40B3B7", 170 | "J. c #41B9BD", 171 | "K. c #01A2A8", 172 | "L. c #61C6CA", 173 | "M. c #61C7CB", 174 | "N. c #01A3AA", 175 | "O. c #41B9BE", 176 | "P. c #40B3B9", 177 | "Q. c #BFE5E7", 178 | "R. c #40B2B6", 179 | "S. c #00989F", 180 | "T. c #027F85", 181 | "U. c #027C81", 182 | "V. c #40AFB3", 183 | "W. c #109DA2", 184 | "X. c #40B5B9", 185 | "Y. c #40B8BD", 186 | "Z. c #CFEDEF", 187 | "`. c #70C8CB", 188 | " + c #10A0A6", 189 | ".+ c #40B0B6", 190 | "++ c #027D83", 191 | "@+ c #027A7F", 192 | "#+ c #EFF8F9", 193 | "$+ c #9FD7DA", 194 | "%+ c #00A2A8", 195 | "&+ c #BFE7E9", 196 | "*+ c #BFE8E9", 197 | "=+ c #9FD8DA", 198 | "-+ c #02757A", 199 | ";+ c #008D93", 200 | ">+ c #70C2C5", 201 | ",+ c #50BBC0", 202 | "'+ c #60C4C8", 203 | ")+ c #DFF3F4", 204 | "!+ c #61C3C6", 205 | "~+ c #50BCC0", 206 | "{+ c #BFE6E7", 207 | "]+ c #70C3C6", 208 | "^+ c #009298", 209 | "/+ c #026A6F", 210 | "(+ c #01848A", 211 | "_+ c #9FD6D8", 212 | ":+ c #019CA3", 213 | "<+ c #019DA3", 214 | "[+ c #9FD7D9", 215 | "}+ c #018A8F", 216 | "|+ c #017D82", 217 | "1+ c #40AEB3", 218 | "2+ c #AFDEE0", 219 | "3+ c #DFF3F3", 220 | "4+ c #20A9AF", 221 | "5+ c #40AFB4", 222 | "6+ c #017F85", 223 | "7+ c #027479", 224 | "8+ c #00898F", 225 | "9+ c #00979E", 226 | "0+ c #0099A0", 227 | "a+ c #00939A", 228 | "b+ c #018D92", 229 | "c+ c #027378", 230 | "d+ c #017E84", 231 | "e+ c #018085", 232 | "f+ c #027075", 233 | "g+ c #018288", 234 | "h+ c #00949B", 235 | "i+ c #00959C", 236 | "j+ c #01868B", 237 | "k+ c #027074", 238 | "l+ c #01878C", 239 | "m+ c #018A90", 240 | "n+ c #02787D", 241 | "o+ c #01888E", 242 | "p+ c #018C91", 243 | "q+ c #02777C", 244 | "r+ c #01858B", 245 | "s+ c #027176", 246 | "t+ c #009196", 247 | "u+ c #009398", 248 | "v+ c #01858A", 249 | "w+ c #015A5E", 250 | "x+ c #02767B", 251 | "y+ c #018086", 252 | "z+ c #00959A", 253 | "A+ c #018C92", 254 | "B+ c #018287", 255 | "C+ c #015B5E", 256 | "D+ c #027E83", 257 | "E+ c #018388", 258 | "F+ c #027E84", 259 | "G+ c #026B70", 260 | "H+ c #01565A", 261 | " . . . + + . . . ", 262 | " . @ # $ % & * * = - ; > , . ", 263 | " ' ) ! ~ { ] ^ ^ ^ ^ ] / ( _ : < ", 264 | " . [ } | 1 ^ 2 3 3 3 4 3 3 3 2 ^ 5 6 7 . ", 265 | " 8 9 0 a ^ 2 3 b c c d e d c c b 3 2 f g h 8 ", 266 | " i j k ^ 2 3 b c e l m n n n m l e c b 3 2 o p i ", 267 | " q r s ^ 2 3 c e l t u v v w v v u t l e c 3 2 x y q ", 268 | " z A B 2 3 c C n D w E F G H G F E w D n C c 3 2 I J ", 269 | " K L M ^ 3 c C n v E G N O P Q P O N G E v n C c 3 ^ R S ", 270 | " T U ^ 2 b e n v E N O V W X X X W V O N E v n e b 2 1 Y ", 271 | " Z ` .^ 3 c ..+.@.#.$.%.&.*.=.-.=.;.>.,.#.@.'.).l c 3 ^ !.~. ", 272 | " {.].B 2 3 ^.#.#.#.#.#.#./.(._.:.<./.#.#.#.#.#.#.[.c b 2 }.|. ", 273 | " 1.}.^ 2 2.#.#.3.4.5.6.$.#.#.<.<.#.#.,.7.8.9.0.#.#.a.b 3 ^ 1. ", 274 | " b.c.B ^ d.#.e.3 f.l u g.h.#.#.#.#.i.j.k.5.l.d ^.#.d.3 2 ^ m. ", 275 | " n.o.M p.#.#.q.r.s...t.u.v.w.#.#.w.x.y.z.#.a.A.B.#.#.C.^ ^ D. ", 276 | " E.c.M F.#.G.H.I.#.#.#.J.K.L.#.#.M.N.O.#.#.#.P.^ Q.#.R.S.B T. ", 277 | " U.c. .V.#.#.W.r.X.).Y.u.k.Z.#.#.Z.v.y.z.#.`. +] #.#..+B B ++ ", 278 | " @+}.o.c.#+#.$+3 C u %+k.&+#.#.#.#.*+y.u.5.l.4 =+#.#+ .M M @+ ", 279 | " -+;+o.c.>+#.#.Q.,+5.'+)+#.#.!+!+#.#.)+'+).~+{+#.#.]+ .M ^+-+ ", 280 | " /+(+c.^+}._+#.#.#.#.#.#.d.!+:+<+!+d.#.#.#.#.#.#.[+c.o. .}+/+ ", 281 | " |+^+^+}.}.1+2+d.#.3+^.4+c f.c d 4+^.3+#.d.2+5+c.c.o. .6+ ", 282 | " 7+8+c.}.}.^+o.M 9+0+0+b c d d d c b 0+S.H. .a+c.c.o.b+c+ ", 283 | " d+c.c.^+^+a+o.M 9+S.4 d e C e f.0+S.H. .o.a+o. . .e+ ", 284 | " f+g+o.o.c.o.h+i+9+0+f.e m n C c 0+S.H.i+i+ . .M j+k+ ", 285 | " 7+l+ . . .M B ^ 4 c l n t l e b 0+^ B B M M m+7+ ", 286 | " n+o+M M B ^ 2 3 c C l l l d b 3 2 ^ B B p+n+ ", 287 | " q+r+M B ^ 2 3 c c d e d c b 3 2 ^ B o+q+ ", 288 | " s+g+t+^ ^ 2 3 3 3 4 3 3 3 2 ^ u+v+s+ ", 289 | " w+x+y+m+z+^ ^ ^ ^ ^ ^ M A+B+x+C+ ", 290 | " /+q+E.D+E+E+F+E.q+G+ ", 291 | " H+H+ ", 292 | " "}; 293 | -------------------------------------------------------------------------------- /debian/patches/build.xml.167.arm_fix.patch: -------------------------------------------------------------------------------- 1 | diff --git a/build/build.xml b/build/build.xml 2 | index 9e955d9..0746f18 100644 3 | --- a/build/build.xml 4 | +++ b/build/build.xml 5 | @@ -1,4 +1,4 @@ 6 | - 7 | + 8 | 9 | 10 | 11 | @@ -22,6 +22,7 @@ 12 | 13 | 14 | 15 | + 16 | 17 | 18 | 19 | @@ -29,20 +30,26 @@ 20 | 21 | 22 | 23 | + 24 | 25 | 26 | 27 | 28 | 29 | + 30 | 31 | 32 | 33 | 34 | 35 | + 36 | 37 | 38 | 39 | 40 | + 41 | + 42 | + 43 | 44 | 45 | 46 | @@ -572,7 +579,9 @@ 47 | 48 | 49 |
50 | + 51 | 52 | + 53 | 54 | 55 | 56 | @@ -587,7 +596,50 @@ 57 | 58 | 59 | 60 | - 61 | + 62 | + 63 | + 64 | + 65 | + 66 | + 67 | + 68 | + 69 | + 70 | + 71 | + 72 | + 73 | + 74 | + 75 | + 76 | + 77 | + 78 | + 79 | + 80 | + 81 | + 82 | + 83 | + 84 | + 85 | + 86 | + 87 | + 88 | + 89 | + 90 | + 91 | + 92 | + 93 | + 94 | + 95 | + 96 | + 97 | + 98 | + 99 | + 100 | + 101 | + 102 | + 103 | + 104 | + 105 | 106 | 107 | 108 | @@ -619,7 +671,7 @@ 109 | 110 | 111 | 112 | - 113 | + 114 | 115 | 116 | 117 | @@ -667,6 +719,8 @@ 118 | 119 | 120 | 121 | + 122 | + 123 | 124 | 125 | 126 | @@ -675,6 +729,10 @@ 127 | 128 | 129 | 130 | + 131 | + 132 | + 133 | + 134 | 135 | 136 | 137 | @@ -759,6 +817,9 @@ 138 | 140 | 141 | + 143 | + 144 | 145 | 146 | 147 | -------------------------------------------------------------------------------- /debian/patches/build.xml.arm_fix.patch: -------------------------------------------------------------------------------- 1 | diff --git a/build/build.xml b/build/build.xml 2 | index 1764bbf..685d89b 100644 3 | --- a/build/build.xml 4 | +++ b/build/build.xml 5 | @@ -22,6 +22,7 @@ 6 | 7 | 8 | 9 | + 10 | 11 | 12 | 13 | @@ -29,20 +30,26 @@ 14 | 15 | 16 | 17 | + 18 | 19 | 20 | 21 | 22 | 23 | + 24 | 25 | 26 | 27 | 28 | 29 | + 30 | 31 | 32 | 33 | 34 | + 35 | + 36 | + 37 | 38 | 39 | 40 | @@ -582,7 +589,9 @@ 41 | 42 | 43 |
44 | + 45 | 46 | + 47 | 48 | 49 | 50 | @@ -607,7 +616,64 @@ 51 | 52 | 53 | 54 | - 55 | + 56 | + 57 | + 58 | + 59 | + 60 | + 61 | + 62 | + 63 | + 64 | + 65 | + 66 | + 67 | + 68 | + 69 | + 70 | + 71 | + 72 | + 73 | + 74 | + 75 | + 76 | + 77 | + 78 | + 79 | + 80 | + 81 | + 82 | + 83 | + 84 | + 85 | + 86 | + 87 | + 88 | + 89 | + 90 | + 91 | + 92 | + 93 | + 94 | + 95 | + 96 | + 97 | + 98 | + 99 | + 100 | + 101 | + 102 | + 103 | + 104 | + 105 | + 106 | + 107 | + 108 | + 109 | + 110 | + 111 | + 112 | + 113 | 114 | 115 | 116 | @@ -639,7 +705,7 @@ 117 | 118 | 119 | 120 | - 121 | + 122 | 123 | 124 | 125 | @@ -687,6 +753,8 @@ 126 | 127 | 128 | 129 | + 130 | + 131 | 132 | 133 | 134 | @@ -695,6 +763,10 @@ 135 | 136 | 137 | 138 | + 139 | + 140 | + 141 | + 142 | 143 | 144 | 145 | @@ -779,6 +851,9 @@ 146 | 148 | 149 | + 151 | + 152 | 153 | 154 | 155 | -------------------------------------------------------------------------------- /Arduino_IDE_builder.bash: -------------------------------------------------------------------------------- 1 | #!/bin/bash -ex 2 | # A simple script to build the Arduino IDE 3 | # GNU General Public License invoked 4 | # Debian dependacies 5 | # apt-get update && apt-get upgrade -y 6 | # apt-get install -y mercurial subversion build-essential gperf bison ant texinfo zip automake flex libusb-dev libusb-1.0-0-dev libtinfo-dev pkg-config 7 | # apt-get install -y libwxbase3.0-dev libtool 8 | # Beerware by ShorTie 9 | 10 | # Options, rem out or set to sumfin else to not 11 | 12 | # Normally, Update_git is the only 1 needed to be un-rem'd 13 | # The rest are mainly for if your playing with the sources, and my debug, lol. 14 | echo -e "\n\nConfiguration values\n\n" 15 | 16 | Stable="1.6.7" 17 | 18 | Update_me="yes" 19 | #Update_git="yes" 20 | #Update_Arduino_git="yes" 21 | #Build_distro="yes" 22 | 23 | #ReBuild_Arduino="yes" 24 | #ReBuild_toolchain_avr="yes" 25 | #ReBuild_avrdude="yes" 26 | #ReBuild_arduino_builder="yes" 27 | #ReBuild_astyle="yes" 28 | #ReBuild_ctags="yes" 29 | #ReBuild_listSerialPortsC="yes" 30 | 31 | #Bossac="yes" 32 | #Coan="yes" 33 | #OpenOCD="yes" 34 | 35 | # This is only used on the initial run to sed a few things, mainly in toolchain-avr, can not be re-done without a do over from beginnig 36 | Silence_is_Golden="yes" 37 | 38 | #Toolchain_avr_version="3.4.5" 39 | #Toolchain_avr_version="3.5.0" 40 | 41 | # https://github.com/arduino/ArduinoCore-samd 42 | # Script, 43 | # ***************************************************************** 44 | echo -e "\n\nSystem check\n\n" 45 | 46 | start_time=$(date) 47 | Start_Directory=`pwd` 48 | Working_Directory=`pwd`/Arduino/build 49 | 50 | 51 | # Check to see if Arduino_IDE_builder.bash is being run as root 52 | echo -e "\n\nChecking for root .. \n" 53 | if [ `id -u` != 0 ]; then 54 | echo -e "\n\nOoops, So, So, Sorry, We play only as root !!\nTry sudo\nHave A Great Day\n\n" 55 | exit -1 56 | else 57 | echo "Yuppers .. :)~" 58 | fi 59 | 60 | if [[ $Update_me == "yes" ]]; then 61 | echo -e "\n\nChecking to see if I'm update\n" 62 | git remote update 63 | if [[ ! `git status -uno | grep up-to-date` ]]; then 64 | git checkout -- . 65 | git pull 66 | echo -e "\n\nUpdating me\nRestart required\n\n" 67 | exit 1 68 | fi 69 | fi 70 | 71 | echo -e "\n\nJava Checking and setup\n" 72 | Java_Version=`java -version 2>&1 | sed 's/java version "\(.*\)\.\(.*\)\..*"/\1\2/; 1q'` 73 | echo $JAVA_HOME 74 | 75 | # Check for what version of Java and set JAVA_HOME 76 | if [[ $Java_Version != "18" ]]; then 77 | echo -e "\n\nOops, you need Java 1.8\n\n" 78 | exit -1 79 | elif [ `uname -s` == "Linux" ]; then 80 | if [ `readlink -f /usr/bin/javac | sed "s:bin/javac::" | grep 8` ]; then 81 | JAVA_HOME=`readlink -f /usr/bin/javac | sed "s:bin/javac::"` 82 | export JAVA_HOME 83 | else 84 | echo -e "\n\nSo, So, Sorry, Could not set JAVA_HOME\n\n" 85 | exit -1 86 | fi 87 | fi 88 | 89 | 90 | # Checking for go 91 | echo -e "\n\nChecking for go\n" 92 | if [ `uname -s` == "Linux" ]; then 93 | if [[ ! -f /usr/local/go/bin/go ]]; then 94 | echo -e "\n\nInstalling go for arduino-builder\n" 95 | cd /usr/local 96 | wget https://storage.googleapis.com/golang/go1.4.3.src.tar.gz 97 | tar -xf go1.4.3.src.tar.gz 98 | rm go1.4.3.src.tar.gz 99 | cd go/src 100 | ./all.bash 101 | ../bin/./go version 102 | cd $Start_Directory 103 | else 104 | /usr/local/go/bin/./go version 105 | fi 106 | else 107 | echo -e "\n\nSo So Sorry, don't know how to check for go\n" 108 | exit -1 109 | fi 110 | 111 | 112 | # Determine system type 113 | echo -e "\n\nDetermining system type\n" 114 | if [ `uname -s` == "Linux" ]; then 115 | if [ `uname -m | grep arm` ]; then 116 | Sys="arm" 117 | SysTag="armhf" 118 | elif [ `getconf LONG_BIT` == "32" ]; then 119 | Bits="32" 120 | Sys="linux32" 121 | SysTag="i686" 122 | elif [ `getconf LONG_BIT` == "64" ]; then 123 | Bits="64" 124 | Sys="linux64" 125 | SysTag="x86_64" 126 | fi 127 | # Lets speed some compiles up 128 | if [[ `nproc` > "2" ]]; then 129 | JOBS=$((`nproc`+1)) 130 | # Silence is Golden 131 | JOBS+=" -s" 132 | else 133 | JOBS="2 -s" 134 | fi 135 | elif [ `uname -s` == "Darwin" ]; then 136 | Sys="macosx" 137 | echo "So So Sorry, not fully implemented yet" 138 | exit 0 139 | elif [ `uname -s | grep CYGWIN` ]; then 140 | Sys="windows" 141 | echo "So So Sorry, not fully implemented yet" 142 | exit 0 143 | elif [ `uname -s | grep MINGW` ]; then 144 | Sys="windows" 145 | echo "So So Sorry, not fully implemented yet" 146 | exit 0 147 | fi 148 | echo -e "\n\nBuilding Arduino_IDE for $Sys\n\n" 149 | 150 | 151 | 152 | if [[ ! -d Arduino ]]; then 153 | echo -e "\n\nRetriving Arduino_IDE for $Sys form github and remove some junk\n\n" 154 | if [[ $Stable ]]; then 155 | git clone --depth 1 -b $Stable https://github.com/arduino/Arduino.git 156 | else 157 | git clone --depth 1 https://github.com/arduino/Arduino.git 158 | fi 159 | if [[ $Sys == "arm" ]]; then 160 | cd Arduino 161 | if [[ $Stable == "1.6.7" ]]; then 162 | patch -p1 < ../debian/patches/build.xml.167.arm_fix.patch 163 | else 164 | patch -p1 < ../debian/patches/build.xml.arm_fix.patch 165 | fi 166 | 167 | patch -p1 < ../debian/patches/remove_update_warning.patch 168 | if [[ ! $Stable ]]; then 169 | patch -p1 < ../debian/patches/Boards_Manager_Revert.patch 170 | fi 171 | cd .. 172 | fi 173 | rm -rfv Arduino/build/arduino-builde* 174 | rm -v Arduino/build/linux/avr-gcc* 175 | rm -v Arduino/build/linux/avrdude* 176 | if [[ -d files ]]; then 177 | ./put_files.bash 178 | fi 179 | rm -v Arduino/build/libastyle* 180 | if [[ `ls Arduino/build/liblistSerials-*` ]]; then 181 | rm -v Arduino/build/liblistSerials-* 182 | fi 183 | cd $Working_Directory 184 | fi 185 | 186 | #exit 0 187 | 188 | if [[ $Update_Arduino_git == "yes" ]]; then 189 | echo -e "\n\nChecking for Arduino_IDE github updates\n\n" 190 | cd Arduino 191 | if [[ ! `git branch | grep master` ]]; then 192 | git checkout -- . 193 | git remote add upstream https://github.com/arduino/Arduino.git 194 | git checkout -b master 195 | git fetch upstream 196 | git merge upstream/master 197 | if [[ $Sys == "arm" ]]; then 198 | if [[ ! `patch -p1 < ../debian/patches/build.xml.arm_fix.patch --dry-run | grep Reversed ` ]]; then 199 | patch -p1 < ../debian/patches/build.xml.arm_fix.patch 200 | fi 201 | if [[ ! `patch -p1 < ../debian/patches/remove_update_warning.patch --dry-run | grep Reversed ` ]]; then 202 | patch -p1 < ../debian/patches/remove_update_warning.patch 203 | fi 204 | if [[ ! `patch -p1 < ../debian/patches/Boards_Manager_Revert.patch --dry-run | grep Reversed ` ]]; then 205 | patch -p1 < ../debian/patches/Boards_Manager_Revert.patch 206 | fi 207 | fi 208 | ReBuild_Arduino="yes" 209 | ReBuild_arduino_builder="yes" 210 | ReBuild_astyle="yes" 211 | ReBuild_ctags="yes" 212 | ReBuild_listSerialPortsC="yes" 213 | if [[ -d files ]]; then 214 | ./put_files.bash 215 | fi 216 | cd build 217 | else 218 | git remote update 219 | if [[ ! `git status -uno | grep up-to-date` ]]; then 220 | git checkout -- . 221 | git pull 222 | if [[ $Sys == "arm" ]]; then 223 | if [[ ! `patch -p1 < ../debian/patches/build.xml.arm_fix.patch --dry-run | grep Reversed ` ]]; then 224 | patch -p1 < ../debian/patches/build.xml.arm_fix.patch 225 | fi 226 | if [[ ! `patch -p1 < ../debian/patches/remove_update_warning.patch --dry-run | grep Reversed ` ]]; then 227 | patch -p1 < ../debian/patches/remove_update_warning.patch 228 | fi 229 | if [[ ! `patch -p1 < ../debian/patches/Boards_Manager_Revert.patch --dry-run | grep Reversed ` ]]; then 230 | patch -p1 < ../debian/patches/Boards_Manager_Revert.patch 231 | fi 232 | fi 233 | ReBuild_Arduino="yes" 234 | ReBuild_arduino_builder="yes" 235 | ReBuild_astyle="yes" 236 | ReBuild_ctags="yes" 237 | ReBuild_listSerialPortsC="yes" 238 | if [[ -d files ]]; then 239 | ./put_files.bash 240 | fi 241 | cd build 242 | else 243 | cd build 244 | fi 245 | fi 246 | else 247 | cd $Working_Directory 248 | fi 249 | 250 | # toolchain-avr 251 | if [[ ! -d toolchain-avr ]]; then 252 | echo -e "\n\nRetriving toolchain-avr form github\n\n" 253 | git clone --depth 1 https://github.com/arduino/toolchain-avr.git 254 | # Silence is Golden 255 | if [[ "$Silence_is_Golden" == "yes" ]]; then 256 | sed -i 's/cp -v -f/cp -f/' toolchain-avr/*.bash 257 | sed -i 's/tar xfjv/tar xf/' toolchain-avr/*.bash 258 | sed -i 's/tar xfv/tar xf/' toolchain-avr/*.bash 259 | sed -i 's/tar -cjvf/tar -cjf/' toolchain-avr/*.bash 260 | sed -i 's/unzip/unzip -q/' toolchain-avr/*.bash 261 | sed -i 's/make install/make install -s/' toolchain-avr/*.bash 262 | sed -i 's/patch -/patch -s -/' toolchain-avr/*.bash 263 | #sed -i 's@/configure @/configure --silent @' toolchain-avr/*.bash 264 | sed -i 's@/configure @/configure --silent --with-pkgversion="Arduino" @' toolchain-avr/*.bash 265 | fi 266 | fi 267 | 268 | if [[ $Update_git == "yes" ]]; then 269 | echo -e "\n\nChecking for toolchain-avr github updates\n\n" 270 | cd toolchain-avr 271 | git remote update 272 | if [[ ! `git status -uno | grep up-to-date` ]]; then 273 | git pull 274 | rm -v ../linux/avr-gcc*arduino* ../linux/avrdude*arduino* 275 | fi 276 | cd .. 277 | fi 278 | 279 | 280 | if [[ $ReBuild_toolchain_avr == "yes" ]]; then 281 | echo -e "\n\nDelete stuff to enable Rebuilding of toolchain-avr\n\n" 282 | if [[ `ls linux/avr-gcc*bz2*` ]]; then 283 | rm -v linux/avr-gcc*arduino* 284 | fi 285 | fi 286 | 287 | 288 | if [[ $ReBuild_avrdude == "yes" ]] || [[ $ReBuild_toolchain_avr == "yes" ]]; then 289 | echo -e "\n\nDelete stuff to enable Rebuilding of avrdude\n\n" 290 | if [[ `ls linux/avrdude*bz2*` ]]; then 291 | rm -v linux/avrdude*arduino* 292 | fi 293 | fi 294 | 295 | 296 | if [ ! `ls linux/avr-gcc*bz2` ]; then 297 | echo -e "\n\nBuilding toolchain-avr\n\n" 298 | cd toolchain-avr 299 | if [ `uname -s` == "Linux" ]; then 300 | if [ $Sys == "arm" ]; then 301 | MAKE_JOBS="$JOBS" ./arch.arm.build.bash 302 | shasum avr-gcc-4.8.1-arduino5-armhf-pc-linux-gnu.tar.bz2 | awk '{ print $1 }' > avr-gcc-4.8.1-arduino5-armhf-pc-linux-gnu.tar.bz2.sha 303 | shasum avrdude-6.0.1-arduino5-armhf-pc-linux-gnu.tar.bz2 | awk '{ print $1 }' > avrdude-6.0.1-arduino5-armhf-pc-linux-gnu.tar.bz2.sha 304 | elif [ $Sys == "linux32" ]; then 305 | MAKE_JOBS="$JOBS" ./arch.linux32.build.bash 306 | shasum avr-gcc-4.8.1-arduino5-i686-pc-linux-gnu.tar.bz2 | awk '{ print $1 }' > avr-gcc-4.8.1-arduino5-i686-pc-linux-gnu.tar.bz2.sha 307 | shasum avrdude-6.0.1-arduino5-i686-pc-linux-gnu.tar.bz2 | awk '{ print $1 }' > avrdude-6.0.1-arduino5-i686-pc-linux-gnu.tar.bz2.sha 308 | elif [ $Sys == "linux64" ]; then 309 | MAKE_JOBS="$JOBS" ./arch.linux64.build.bash 310 | shasum avr-gcc-4.8.1-arduino5-x86_64-pc-linux-gnu.tar.bz2 | awk '{ print $1 }' > avr-gcc-4.8.1-arduino5-x86_64-pc-linux-gnu.tar.bz2.sha 311 | shasum avrdude-6.0.1-arduino5-x86_64-pc-linux-gnu.tar.bz2 | awk '{ print $1 }' > avrdude-6.0.1-arduino5-x86_64-pc-linux-gnu.tar.bz2.sha 312 | fi 313 | elif [ `uname -s` == "Darwin" ]; then 314 | MAKE_JOBS="$JOBS" arch.mac32.build.bash 315 | shasum avr-gcc-4.8.1-arduino5-i386-apple-darwin11.tar.bz2 | awk '{ print $1 }' > avr-gcc-4.8.1-arduino5-i386-apple-darwin11.tar.bz2.sha 316 | shasum avrdude-6.0.1-arduino5-i686-i386-apple-darwin11.tar.bz2 | awk '{ print $1 }' > avrdude-6.0.1-arduino5-i386-apple-darwin11.tar.bz2.sha 317 | fi 318 | mv -v avr-gcc* ../linux/ 319 | mv -v avrdude*arduino* ../linux/ 320 | cd $Working_Directory 321 | fi 322 | 323 | 324 | if [ ! `ls linux/avrdude*arduino*bz2` ]; then 325 | echo -e "\n\nBuilding avrdude\n\n" 326 | cd toolchain-avr 327 | git tag 328 | if [ `uname -s` == "Linux" ]; then 329 | if [ $Sys == "arm" ]; then 330 | ./clean.bash 331 | MAKE_JOBS="$JOBS" ./avrdude.build.bash 332 | shasum avrdude-6.0.1-arduino5-armhf-pc-linux-gnu.tar.bz2 | awk '{ print $1 }' > avrdude-6.0.1-arduino5-armhf-pc-linux-gnu.tar.bz2.sha 333 | elif [ $Sys == "linux32" ]; then 334 | ./clean.bash 335 | MAKE_JOBS="$JOBS" ./avrdude.build.bash 336 | shasum avrdude-6.0.1-arduino5-i686-pc-linux-gnu.tar.bz2 | awk '{ print $1 }' > avrdude-6.0.1-arduino5-i686-pc-linux-gnu.tar.bz2.sha 337 | elif [ $Sys == "linux64" ]; then 338 | ./clean.bash 339 | MAKE_JOBS="$JOBS" ./avrdude.build.bash 340 | shasum avrdude-6.0.1-arduino5-x86_64-pc-linux-gnu.tar.bz2 | awk '{ print $1 }' > avrdude-6.0.1-arduino5-x86_64-pc-linux-gnu.tar.bz2.sha 341 | fi 342 | elif [ `uname -s` == "Darwin" ]; then 343 | ./clean.bash 344 | MAKE_JOBS="$JOBS" ./avrdude.build.bash 345 | shasum avrdude-6.0.1-arduino5-i686-i386-apple-darwin11.tar.bz2 | awk '{ print $1 }' > avrdude-6.0.1-arduino5-i386-apple-darwin11.tar.bz2.sha 346 | fi 347 | mv -v avrdude*arduino* ../linux/ 348 | cd $Working_Directory 349 | fi 350 | 351 | # End toolchain-avr 352 | 353 | # Asyle 354 | if [[ ! -d astyle ]]; then 355 | echo -e "\n\nGetting astyle\n" 356 | git clone https://github.com/arduino/astyle 357 | sed -i 's/svn co/svn co --quiet/' astyle/setup.bash 358 | fi 359 | 360 | 361 | if [[ $ReBuild_astyle == "yes" ]]; then 362 | echo -e "\n\nDelete stuff to enable Rebuilding of astyle\n" 363 | if [ `ls libastylej*.zip` ]; then 364 | rm -v ./libastylej*.zip 365 | fi 366 | if [ `ls libastylej*.sha` ]; then 367 | rm -v ./libastylej*.sha 368 | fi 369 | fi 370 | 371 | if [[ $Update_git == "yes" ]]; then 372 | echo -e "\n\nChecking for astyle github updates\n" 373 | cd astyle 374 | git remote update 375 | if [[ ! `git status -uno | grep up-to-date` ]]; then 376 | git pull 377 | rm -v ../libastylej*.zip 378 | rm -v ../libastylej*.sha 379 | fi 380 | cd .. 381 | fi 382 | 383 | if [[ ! `ls libastylej-*.zip` ]]; then 384 | echo -e "\n\nBuilding astyle\n" 385 | if [ `uname -s` == "Linux" ]; then 386 | cd astyle 387 | git tag 388 | ./setup.bash 389 | cd astyle-code/AStyle/build/gcc/ 390 | 391 | if [ $Sys == "arm" ]; then 392 | CFLAGS="-Os" LDFLAGS="-s" make java -j $JOBS 393 | cd bin 394 | mkdir libastylej-2.05.1 395 | cp libastyle*.so libastylej-2.05.1/libastylej_arm.so 396 | else 397 | CFLAGS="-m$Bits -Os" LDFLAGS="-m$Bits -s" make java -s 398 | cd bin 399 | mkdir libastylej-2.05.1 400 | cp libastyle*.so libastylej-2.05.1/libastylej$Bits.so 401 | fi 402 | elif [ `uname -s` == "Darwin" ]; then 403 | # UN-tested 404 | cd astyle 405 | ./setup.bash 406 | cd astyle-code/AStyle/build/mac/ 407 | CFLAGS="-arch i386 -arch x86_64 -Os" LDFLAGS="-arch i386 -arch x86_64 -liconv" make java 408 | cd bin 409 | mkdir libastylej-2.05.1 410 | cp libastyle*.dylib libastylej-2.05.1/libastylej.jnilib 411 | fi 412 | 413 | zip -rv libastylej-2.05.1.zip libastylej-2.05.1 414 | shasum libastylej-2.05.1.zip | awk '{ print $1 }' > libastylej-2.05.1.zip.sha 415 | mv libastylej-2.05.1.zip* $Working_Directory 416 | cd $Working_Directory 417 | fi 418 | # End Asyle 419 | 420 | # ctags 421 | if [[ ! -d ctags ]]; then 422 | echo -e "\n\nChecking for ctags\n" 423 | git clone https://github.com/arduino/ctags.git 424 | fi 425 | 426 | if [[ $ReBuild_ctags == "yes" ]]; then 427 | echo -e "\n\nDelete stuff to enable Rebuilding of ctags\n" 428 | if [[ -f ctags/ctags ]]; then 429 | rm -v ctags/ctags 430 | fi 431 | fi 432 | 433 | 434 | if [[ $Update_git == "yes" ]]; then 435 | echo -e "\n\nUpdate ctags git\n" 436 | cd ctags 437 | git tag 438 | git remote update 439 | if [[ ! `git status -uno | grep up-to-date` ]]; then 440 | git pull 441 | if [[ -f ctags ]]; then 442 | rm -v ctags 443 | fi 444 | fi 445 | cd .. 446 | fi 447 | 448 | 449 | if [[ ! -f ctags/ctags ]]; then 450 | echo -e "\n\nBuilding ctags\n" 451 | #[new tag] 5.8-arduino6 -> 5.8-arduino6 452 | cd ctags 453 | if [[ -f ctags ]]; then 454 | make distclean 455 | fi 456 | ./configure --silent 457 | make -j $JOBS 458 | cd .. 459 | fi 460 | # End ctags 461 | 462 | 463 | # Bossac 464 | if [[ ! $Bossac && ! `grep -ir 'exclude name="arduino/sam' build.xml` ]]; then 465 | patch -p1 -R < ../../debian/patches/sam_fix.patch 466 | fi 467 | 468 | if [[ $Bossac == "yes" ]]; then 469 | if [[ `grep -ir 'exclude name="arduino/sam' build.xml` ]]; then 470 | patch -p1 < ../../debian/patches/sam_fix.patch 471 | fi 472 | 473 | if [[ ! `ls linux/bossac*arduino*` ]]; then 474 | echo -e "\n\nBuilding bossac\n" 475 | # bossac bossac-1.6.1-arduino-i486-linux-gnu.tar.gz 476 | # apt-get install libwxbase3.0-dev 477 | 478 | if [ ! `which wx-config` ]; then 479 | echo "nope, You need libwxbase3.0-dev" 480 | exit 1 481 | fi 482 | if [[ ! -f Bossa-1.6.1-arduino.tar.gz ]]; then 483 | wget -N https://github.com/shumatech/BOSSA/archive/1.6.1-arduino.tar.gz 484 | mv 1.6.1-arduino.tar.gz Bossa-1.6.1-arduino.tar.gz 485 | fi 486 | tar xf Bossa-1.6.1-arduino.tar.gz 487 | 488 | cd BOSSA-1.6.1-arduino 489 | sed -i 's/-j4/-j4 -s/' arduino/make_package.sh 490 | arduino/./make_package.sh 491 | 492 | shasum arduino/bossac-1.6.1-arduino-arm-linux-gnueabihf.tar.gz | awk '{ print $1 }' > arduino/bossac-1.6.1-arduino-arm-linux-gnueabihf.tar.gz.sha 493 | mv arduino/bossac*arduino* ../linux 494 | ReBuild_Arduino="yes" 495 | cd .. 496 | fi 497 | fi 498 | 499 | # End Bossac 500 | 501 | # Coan 502 | if [[ $Coan == "yes" ]]; then 503 | 504 | if [[ ! `ls linux/coan*arduino*` ]]; then 505 | echo -e "\n\nBuilding coan\n" 506 | if [[ ! -f coan-5.2.tar.gz ]]; then 507 | wget -N http://sourceforge.net/projects/coan2/files/v5.2/coan-5.2.tar.gz 508 | fi 509 | 510 | rm -rf coan-5.2 511 | tar xf coan-5.2.tar.gz 512 | cd coan-5.2 513 | PREFIX=`pwd` 514 | ./configure --prefix=$PREFIX 515 | make -j $JOBS 516 | make install -j $JOBS 517 | 518 | shasum arduino/bossac-1.6.1-arduino-arm-linux-gnueabihf.tar.gz | awk '{ print $1 }' > coan-5.2-arduino-arm-linux-gnueabihf.tar.gz.sha 519 | mv coan*arduino* ../linux 520 | cd .. 521 | fi 522 | fi 523 | # End Coan 524 | 525 | # liblistserials 526 | if [[ ! -d listSerialPortsC ]]; then 527 | echo -e "\n\nGetting listSerialPortsC\n" 528 | git clone https://github.com/facchinm/listSerialPortsC.git 529 | cd listSerialPortsC 530 | rm -rvf libserialport 531 | git clone https://github.com/facchinm/libserialport.git 532 | cd $Working_Directory 533 | fi 534 | 535 | if [[ $Update_git == "yes" ]]; then 536 | echo -e "\n\nChecking for listSerialPortsC github updates\n" 537 | cd listSerialPortsC 538 | git remote update 539 | if [[ ! `git status -uno | grep up-to-date` ]]; then 540 | git pull 541 | rm -v ../liblistSerials*.zip 542 | rm -v ../liblistSerials*.sha 543 | fi 544 | cd libserialport 545 | git remote update 546 | if [[ ! `git status -uno | grep up-to-date` ]]; then 547 | git pull 548 | rm -v ../../liblistSerials*.zip 549 | rm -v ../../liblistSerials*.sha 550 | fi 551 | cd $Working_Directory 552 | fi 553 | 554 | 555 | if [[ $ReBuild_listSerialPortsC == "yes" ]]; then 556 | echo -e "\n\nDelete stuff to enable Rebuilding of listSerialPortsC\n" 557 | if [[ `ls liblistSerials*.zip` ]]; then 558 | rm -v ./liblistSerials* 559 | fi 560 | fi 561 | 562 | if [[ ! `ls liblistSerials*.zip` ]]; then 563 | cd listSerialPortsC 564 | VERSION=`grep -ir 'value="./liblistSerials' ../build.xml | cut -d '/' -f2 | head -1` 565 | VERSION=`echo $VERSION | cut -d '-' -f2` 566 | VERSION=`echo $VERSION | cut -d '"' -f1` 567 | VERSION=`sed 's/.zip//g' <<<"$VERSION"` 568 | git_VERSION=`git tag` 569 | 570 | echo -e "\n\nBuilding listSerialPortsC version $git_VERSION\ntar'ing as $VERSION for the build.xml\n\n" 571 | if [[ `uname -s` == "Linux" ]]; then 572 | mkdir -p distrib/$Sys 573 | cd libserialport 574 | #git tag 575 | if [[ -f make ]]; then 576 | make distclean 577 | fi 578 | ./autogen.sh 579 | ./configure --silent 580 | make clean 581 | make -j $JOBS 582 | cd .. 583 | if [[ $Sys == "arm" ]]; then 584 | gcc -s main.c libserialport/linux_termios.c libserialport/linux.c libserialport/serialport.c -Ilibserialport/ -o listSerialC 585 | gcc -s jnilib.c libserialport/linux_termios.c libserialport/linux.c libserialport/serialport.c -Ilibserialport/ -I$JAVA_HOME/include -I$JAVA_HOME/include/linux -shared -fPIC -o liblistSerialsj.so 586 | else 587 | gcc -m$Bits -s main.c libserialport/linux_termios.c libserialport/linux.c libserialport/serialport.c -Ilibserialport/ -o listSerialC 588 | gcc -m$Bits -s jnilib.c libserialport/linux_termios.c libserialport/linux.c libserialport/serialport.c -Ilibserialport/ -I$JAVA_HOME/include -I$JAVA_HOME/include/linux -shared -fPIC -o liblistSerialsj.so 589 | fi 590 | elif [ `uname -s` == "Darwin" ]; then 591 | # UN-tested 592 | exit -1 593 | fi 594 | 595 | cp listSerialC distrib/$Sys/listSerialC 596 | cp liblistSerialsj.so distrib/$Sys 597 | mv distrib liblistSerials-$VERSION 598 | zip -r liblistSerials-$VERSION.zip liblistSerials-$VERSION 599 | shasum liblistSerials-$VERSION.zip | awk '{ print $1 }' > liblistSerials-$VERSION.zip.sha 600 | rm -rf liblistSerials-$VERSION 601 | 602 | mv liblistSerials-$VERSION.zip* $Working_Directory 603 | cd $Working_Directory 604 | fi 605 | # End liblistserials 606 | 607 | # OpenOCD 608 | if [[ $OpenOCD == "yes" ]]; then 609 | 610 | if [[ ! `ls linux/OpenOCD*` ]]; then 611 | 612 | if [[ ! -d OpenOCD ]]; then 613 | git clone https://github.com/arduino/OpenOCD.git 614 | fi 615 | 616 | if [ $Update_git == "yes" ]; then 617 | cd OpenOCD 618 | if [[ ! `git status -uno | grep up-to-date` ]]; then 619 | git pull 620 | rm ctags 621 | fi 622 | cd .. 623 | fi 624 | 625 | cd OpenOCD 626 | PREFIX=`pwd`/OpenOCD-0.9.0-dev-arduino 627 | #bootstrap: Error: libtool is required 628 | ./bootstrap 629 | ./configure --prefix=$PREFIX 630 | make -j $JOBS 631 | make install -j $JOBS 632 | 633 | tar -cjf OpenOCD-0.9.0-arduino-i486-linux-gnu.tar.bz2 OpenOCD-0.9.0-dev-arduino 634 | sha256sum OpenOCD-0.9.0-arduino-i486-linux-gnu.tar.bz2 | awk '{print$1}' > OpenOCD-0.9.0-arduino-i486-linux-gnu.tar.bz2.sha 635 | mv OpenOCD*arduino*bz2* ../linux 636 | cd .. 637 | fi 638 | fi 639 | # OpenOCD 640 | 641 | # arduino-builder 642 | if [[ ! -d arduino-builder ]]; then 643 | echo -e "\n\nGetting Arduino_builder\n" 644 | if [[ $Sys == "arm" ]]; then 645 | git clone -b arm https://github.com/arduino/arduino-builder 646 | else 647 | git clone https://github.com/arduino/arduino-builder 648 | fi 649 | cd arduino-builder 650 | export PATH=$PATH:/usr/local/go/bin/ 651 | export GOPATH=`pwd` 652 | export GOROOT=/usr/local/go 653 | go get github.com/go-errors/errors 654 | go get github.com/stretchr/testify 655 | go get golang.org/x/codereview/patch 656 | go get github.com/jstemmer/go-junit-report 657 | go get golang.org/x/tools/cmd/vet 658 | cd .. 659 | fi 660 | 661 | if [[ $Update_git == "yes" ]]; then 662 | echo -e "\n\nChecking for github updates for Arduino_builder\n" 663 | cd arduino-builder 664 | git remote update 665 | if [[ ! `git status -uno | grep up-to-date` ]]; then 666 | git pull 667 | rm -v ../arduino-builder-* 668 | fi 669 | cd .. 670 | rm -v arduino-builder-* 671 | fi 672 | 673 | 674 | if [[ $ReBuild_arduino_builder == "yes" ]]; then 675 | echo -e "\n\nDelete stuff to enable Rebuilding of Arduino_builder\n" 676 | if [[ `ls arduino-builder-*bz2` ]]; then 677 | rm -v arduino-builder-* 678 | fi 679 | fi 680 | 681 | 682 | if [[ ! `ls arduino-builder-*bz2` ]]; then 683 | cd arduino-builder 684 | git_ver=`grep -ir 'const VERSION' main.go | cut -d " " -f4` 685 | Arduino_Builder_version=`grep -ir 'ARDUINO-BUILDER-VERSION" value="' ../build.xml | cut -d '"' -f4` 686 | echo -e "\n\nBuilding Arduino_builder github version $git_ver\ntar'ing as $Arduino_Builder_version for build.xml\n" 687 | if [[ -d arduino-builder-$Sys ]]; then 688 | rm -rvf arduino-builder-$Sys 689 | fi 690 | export PATH=$PATH:/usr/local/go/bin/ 691 | export GOPATH=`pwd` 692 | export GOROOT=/usr/local/go 693 | go clean 694 | go build 695 | 696 | mkdir -p arduino-builder-$Sys/{hardware,tools/5.8-arduino5} 697 | cp -v arduino-builder arduino-builder-$Sys/ 698 | cp $Working_Directory/ctags/ctags arduino-builder-$Sys/tools/5.8-arduino5/ 699 | wget https://raw.githubusercontent.com/arduino/arduino-builder/master/src/arduino.cc/builder/hardware/platform.keys.rewrite.txt --directory-prefix=arduino-builder-$Sys/hardware 700 | wget https://raw.githubusercontent.com/arduino/arduino-builder/master/src/arduino.cc/builder/hardware/platform.txt --directory-prefix=arduino-builder-$Sys/hardware 701 | 702 | if [[ $Sys == "arm" ]]; then 703 | wget http://downloads.arduino.cc/packages/test_package_arm_index.json --directory-prefix=arduino-builder-$Sys/hardware 704 | fi 705 | 706 | tar -cjSf ./arduino-builder-$Sys-$Arduino_Builder_version.tar.bz2 -C ./arduino-builder-$Sys/ ./ 707 | shasum arduino-builder-$Sys-$Arduino_Builder_version.tar.bz2 | awk '{ print $1 }' > arduino-builder-$Sys-$Arduino_Builder_version.tar.bz2.sha 708 | cp -v arduino-builder-$Sys-$Arduino_Builder_version.tar.bz2* $Working_Directory 709 | cd $Working_Directory 710 | fi 711 | # End arduino-builder 712 | 713 | 714 | # Arduino_IDE 715 | build_rev=$((head -n 1 shared/revisions.txt) | awk '{print$2}') 716 | if [[ $ReBuild_Arduino == "yes" ]]; then 717 | echo -e "\n\nDelete stuff to enable Rebuilding of the IDE\n" 718 | ant clean 719 | fi 720 | 721 | if [[ ! -f linux/work/arduino ]]; then 722 | git_ver=`git tag | tail -2` 723 | git_ver=`echo $git_ver | cut -d " " -f1` 724 | echo -e "\n\nBuilding Arduino IDE $build_rev for $Sys\ngit version $git_ver\n" 725 | 726 | ant clean build 727 | mkdir -p linux/work/tools-builder/ctags/5.8-arduino5 728 | cp ctags/ctags linux/work/tools-builder/ctags/5.8-arduino5/ 729 | if [[ $Bossac == "yes" ]]; then 730 | patch -p1 < ../../debian/patches/sam_path_fix.patch 731 | fi 732 | fi 733 | # End Arduino_IDE 734 | 735 | # Build_distro 736 | if [[ $Build_distro == "yes" ]]; then 737 | if [[ -f ../../arduino-*.xz ]]; then 738 | rm -v ../../arduino-*.xz 739 | fi 740 | echo "$build_rev" | ant dist 741 | mv -v linux/arduino-*.xz ../../ 742 | fi 743 | # End Build_distro 744 | 745 | 746 | echo $start_time 747 | date 748 | echo -e "\n\nHave Fun and A Great Day\nShorTie\n" 749 | exit 0 750 | 751 | 752 | # Too run, if'n in X11 753 | Arduino/build/linux/work/./arduino 754 | 755 | 756 | -------------------------------------------------------------------------------- /debian/patches/zepto_js.patch: -------------------------------------------------------------------------------- 1 | Description: Here's the missing source code for zepto.min.js 2 | from https://raw.github.com/madrobby/zepto/master/src/zepto.js 3 | Author: Thomas Fuchs 4 | 5 | Index: arduino/libraries/Bridge/examples/TemperatureWebPanel/www/index.html 6 | =================================================================== 7 | --- arduino.orig/libraries/Bridge/examples/TemperatureWebPanel/www/index.html 2014-01-13 22:36:09.891423618 -0500 8 | +++ arduino/libraries/Bridge/examples/TemperatureWebPanel/www/index.html 2014-01-14 00:10:01.231396257 -0500 9 | @@ -1,7 +1,7 @@ 10 | 11 | 12 | 13 | - 14 | + 15 |