├── Arduino_IDE_builder.bash ├── README.md ├── debian ├── arduino-add-groups.1 ├── arduino-core.docs ├── arduino-core.install ├── arduino-core.links ├── arduino.1 ├── arduino.README.Debian ├── arduino.desktop ├── arduino.install ├── arduino.links ├── arduino.manpages ├── arduino.menu ├── arduino.sharedmimeinfo ├── arduino.xpm ├── changelog ├── clean ├── compat ├── control ├── copyright ├── copyright_hints ├── dist │ ├── arduino-add-groups │ └── cc.arduino.add-groups.policy ├── icons │ ├── 128x128 │ │ └── apps │ │ │ └── arduino.png │ ├── 16x16 │ │ └── apps │ │ │ └── arduino.png │ ├── 24x24 │ │ └── apps │ │ │ └── arduino.png │ ├── 256x256 │ │ └── apps │ │ │ └── arduino.png │ ├── 32x32 │ │ └── apps │ │ │ └── arduino.png │ └── 48x48 │ │ └── apps │ │ └── arduino.png ├── linkjars ├── patches │ ├── Boards_Manager_Revert.patch │ ├── PlatformReWrite.patch │ ├── arm_fix.patch │ ├── build.xml.167.arm_fix.patch │ ├── build.xml.arm_fix.patch │ ├── gpg-disable-check.patch │ ├── gpg.patch │ ├── install_jar_links.patch │ ├── no_download_libastylej.patch │ ├── path_fix.patch │ ├── permission_fix.patch │ ├── remove_copying_binaries.patch │ ├── remove_update_warning.patch │ ├── sam_fix.patch │ ├── sam_path_fix.patch │ ├── series │ ├── system_libastylej.patch │ ├── wrapper_for_deb.patch │ └── zepto_js.patch ├── permission-checker │ └── arduinopc.java ├── rules ├── source │ ├── format │ └── include-binaries └── watch ├── put_files.bash └── save_files.bash /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 | -------------------------------------------------------------------------------- /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/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/arduino-core.docs: -------------------------------------------------------------------------------- 1 | build/linux/work/examples/ 2 | build/linux/work/reference/ 3 | -------------------------------------------------------------------------------- /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/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.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.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/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/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/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.manpages: -------------------------------------------------------------------------------- 1 | debian/arduino.1 2 | debian/arduino-add-groups.1 3 | -------------------------------------------------------------------------------- /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.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 | -------------------------------------------------------------------------------- /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/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/clean: -------------------------------------------------------------------------------- 1 | arduinopc.jar 2 | build/shared/examples/08.Strings/CharacterAnalysis/.CharacterAnalysis.ino.swp 3 | -------------------------------------------------------------------------------- /debian/compat: -------------------------------------------------------------------------------- 1 | 8 2 | -------------------------------------------------------------------------------- /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/copyright: -------------------------------------------------------------------------------- 1 | Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ 2 | Upstream-Name: Arduino 3 | Upstream-Contact: Arduino Developers 4 | Source: www.arduino.cc 5 | 6 | Files: core/src/processing/xml 7 | Copyright: 2000-2002, Marc De Scheemaecker 8 | License: ZLIB 9 | This software is provided 'as-is', without any express or implied warranty. 10 | In no event will the authors be held liable for any damages arising from the 11 | use of this software. 12 | . 13 | Permission is granted to anyone to use this software for any purpose, 14 | including commercial applications, and to alter it and redistribute it 15 | freely, subject to the following restrictions: 16 | . 17 | 1. The origin of this software must not be misrepresented; you must not 18 | claim that you wrote the original software. If you use this software in 19 | a product, an acknowledgment in the product documentation would be 20 | appreciated but is not required. 21 | . 22 | 2. Altered source versions must be plainly marked as such, and must not be 23 | misrepresented as being the original software. 24 | . 25 | 3. This notice may not be removed or altered from any source distribution. 26 | 27 | Files: core/src/processing/core/* 28 | Copyright: 2004-09, Ben Fry and Casey Reas 29 | 2001-04, Massachusetts Institute of Technology 30 | License: LGPL-2.1+ 31 | 32 | Files: core/src/processing/core/PVector.java 33 | Copyright: 2004-09, Ben Fry and Casey Reas 34 | 2001-04, Massachusetts Institute of Technology 35 | 2008, Dan Shiffman 36 | License: LGPL-2.1+ 37 | 38 | Files: libraries/* hardware/* 39 | Copyright: 2009-2012, Arduino (TM) 40 | License: LGPL-2.1+ 41 | 42 | Files: hardware/arduino/bootloaders/caterina-Arduino_Robot/Caterina.c 43 | hardware/arduino/bootloaders/caterina-Arduino_Robot/Caterina.h 44 | hardware/arduino/bootloaders/caterina-Arduino_Robot/Descriptors.c 45 | hardware/arduino/bootloaders/caterina-Arduino_Robot/Descriptors.h 46 | hardware/arduino/bootloaders/caterina-LilyPadUSB/Caterina.c 47 | hardware/arduino/bootloaders/caterina-LilyPadUSB/Caterina.h 48 | hardware/arduino/bootloaders/caterina-LilyPadUSB/Descriptors.c 49 | hardware/arduino/bootloaders/caterina-LilyPadUSB/Descriptors.h 50 | hardware/arduino/bootloaders/caterina/Caterina.c 51 | hardware/arduino/bootloaders/caterina/Caterina.h 52 | hardware/arduino/bootloaders/caterina/Descriptors.c 53 | hardware/arduino/bootloaders/caterina/Descriptors.h 54 | Copyright: Dean Camera, 2010-2011 55 | License: 56 | Permission to use, copy, modify, distribute, and sell this 57 | software and its documentation for any purpose is hereby granted 58 | without fee, provided that the above copyright notice appear in 59 | all copies and that both that the copyright notice and this 60 | permission notice and warranty disclaimer appear in supporting 61 | documentation, and that the name of the author not be used in 62 | advertising or publicity pertaining to distribution of the 63 | software without specific, written prior permission. 64 | . 65 | The author disclaim all warranties with regard to this 66 | software, including all implied warranties of merchantability 67 | and fitness. In no event shall the author be liable for any 68 | special, indirect or consequential damages or any damages 69 | whatsoever resulting from loss of use, data or profits, whether 70 | in an action of contract, negligence or other tortious action, 71 | arising out of or in connection with the use or performance of 72 | this software. 73 | 74 | Files: build/shared/examples/* libraries/*/examples/* 75 | Copyright: 2009-2013, Arduino(TM) 76 | License: public-domain 77 | This example code is in the public domain. 78 | 79 | Files: libraries/SoftwareSerial/* 80 | Copyright: 2006, David A. Mellis 81 | License: LGPL-2.1+ 82 | 83 | Files: libraries/Servo/* 84 | Copyright: 2009, Michael Margolis 85 | License: LGPL-2.1+ 86 | 87 | Files: libraries/SPI/* 88 | Copyright: 2010 by Cristian Maglie 89 | License: LGPL-2.1+ or GPL-2 90 | 91 | Files: libraries/Wire/* 92 | Copyright: 2006, Nicholas Zambetti 93 | 2006, James Tichenor 94 | 2006, Shawn Bonkowski 95 | License: LGPL-2.1+ 96 | 97 | Files: libraries/Firmata/* 98 | Copyright: 2006-08, Hans-Christoph Steiner 99 | 2009, Jeff Hoefs 100 | 2009, Shigeru Kobayashi 101 | License: LGPL-2.1+ 102 | 103 | Files: libraries/Stepper/* 104 | Copyright: Tom Igoe 105 | Sebastian Gassner 106 | David A. Mellis 107 | Noah Shibley 108 | License: LGPL-2.1+ 109 | 110 | Files: libraries/Matrix/* 111 | Copyright: 2006, Nicholas Zambetti 112 | License: LGPL-2.1+ 113 | 114 | Files: libraries/EEPROM/* libraries/Sprite/* 115 | Copyright: 2006, David A. Mellis 116 | License: LGPL-2.1+ 117 | 118 | Files: libraries/Robot_*/* 119 | Copyright: 2008-2010, William Greiman 120 | 2006, Nicholas Zambetti 121 | License: GPL-3+ 122 | 123 | Files: libraries/SD/utility/* 124 | Copyright: 2008-2010, William Greiman 125 | License: GPL-3+ 126 | 127 | Files: hardware/arduino/cores/* 128 | Copyright: 2006, Nicholas Zambetti 129 | 2005-10, David A. Mellis 130 | 2004-05, Hernando Barragan 131 | License: LGPL-2.1+ 132 | 133 | Files: libraries/TFT/* 134 | Copyright: 2012, Adafruit Industries. 135 | License: BSD 136 | 137 | Files: hardware/arduino/cores/arduino/avr-libc/sectionname.h 138 | Copyright: 2009, Atmel Corporation 139 | License: BSD 140 | 141 | Files: hardware/arduino/variants/* 142 | Copyright: 2012, D. Cuartielles, N. de la Riva, I. Gallego, E. Gallego 143 | 2913, D. Cuartielles, X. Yang (Arduino Verkstad) 144 | License: LGPL-2.1+ 145 | 146 | Files: hardware/arduino/cores/arduino/CDC.cpp 147 | hardware/arduino/cores/arduino/HID.cpp 148 | hardware/arduino/cores/arduino/USBCore.cpp 149 | hardware/arduino/cores/arduino/USBCore.h 150 | hardware/arduino/cores/arduino/USBDesc.h 151 | hardware/arduino/cores/robot/CDC.cpp 152 | hardware/arduino/cores/robot/HID.cpp 153 | hardware/arduino/cores/robot/USBCore.cpp 154 | hardware/arduino/cores/robot/USBCore.h 155 | hardware/arduino/cores/robot/USBDesc.h 156 | hardware/arduino/bootloaders/diskloader/src/USB* 157 | Copyright: 2010-2011, Peter Barrett 158 | License: ISC 159 | Permission to use, copy, modify, and/or distribute this software for 160 | any purpose with or without fee is hereby granted, provided that the 161 | above copyright notice and this permission notice appear in all copies. 162 | . 163 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 164 | WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 165 | WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR 166 | BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES 167 | OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 168 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 169 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 170 | SOFTWARE. 171 | 172 | Files: hardware/arduino/cores/arduino/avr-libc/malloc.c 173 | Copyright: 2002, 2004, 2010, Joerg Wunsch 174 | 2010, Gerben van den Broeke 175 | License: BSD 176 | 177 | Files: hardware/arduino/cores/arduino/IPAddress.h 178 | hardware/arduino/cores/robot/IPAddress.h 179 | Copyright: 2011, Adrian McEwen 180 | License: Expat 181 | 182 | Files: hardware/arduino/cores/arduino/Udp.h 183 | hardware/arduino/cores/robot/Udp.h 184 | Copyright: 2008, Bjoern Hartmann 185 | License: Expat 186 | 187 | Files: lib/* 188 | Copyright: 2009, Arduino Developers 189 | License: LGPL-2.1+ 190 | 191 | License: LGPL-2.1+ 192 | This library is free software; you can redistribute it and/or 193 | modify it under the terms of the GNU Lesser General Public 194 | License as published by the Free Software Foundation; either 195 | version 2.1 of the License, or (at your option) any later version. 196 | . 197 | This library is distributed in the hope that it will be useful, 198 | but WITHOUT ANY WARRANTY; without even the implied warranty of 199 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 200 | Lesser General Public License for more details. 201 | . 202 | A copy of the license is available on Debian systems at 203 | /usr/share/common-licenses/LGPL-2.1 204 | 205 | Files: src/processing/app/debug/EventThread.java 206 | src/processing/app/debug/StreamRedirectThread.java 207 | Copyright: 1997-2003, Sun Microsystems, Inc. 208 | License: other 209 | Sun grants you ("Licensee") a non-exclusive, royalty free, license to use, 210 | modify and redistribute this software in source and binary code form, 211 | provided that i) this copyright notice and license appear on all copies of 212 | the software; and ii) Licensee does not utilize the software in a manner 213 | which is disparaging to Sun. 214 | . 215 | This software is provided "AS IS," without a warranty of any kind. ALL 216 | EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY 217 | IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR 218 | NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE 219 | LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING 220 | OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS 221 | LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, 222 | INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER 223 | CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF 224 | OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE 225 | POSSIBILITY OF SUCH DAMAGES. 226 | . 227 | This software is not designed or intended for use in on-line control of 228 | aircraft, air traffic, aircraft navigation or aircraft communications; or in 229 | the design, construction, operation or maintenance of any nuclear 230 | facility. Licensee represents and warrants that it will not use or 231 | redistribute the Software for such purposes. 232 | 233 | Files: debian/* 234 | Copyright: 2010, Scott Howard 235 | 2010, Philip Hands 236 | 2009, Arduino Ubuntu Team 237 | License: GPL-2+ 238 | 239 | Files: debian/icons/* debian/dist/* debian/arduino.sharedmimeinfo 240 | Copyright: 2010, Peter Oliver 241 | License: GPL-2+ 242 | 243 | Files: tools/Mangler/src/* 244 | Copyright: 2008 Ben Fry and Casey Reas 245 | License: GPL-2+ 246 | 247 | Files: app/src/processing/app/* app/src/processing/app/syntax/PdeKeywords.java 248 | app/src/processing/app/syntax/PdeTextAreaDefaults.java 249 | Copyright: 2004-09, Ben Fry and Casey Reas 250 | 2001-04, Massachusetts Institute of Technology 251 | 2004-05, Hernando Barragan 252 | License: GPL-2+ 253 | 254 | Files: app/src/processing/app/debug/Sizer.java 255 | app/src/processing/app/debug/Target.java 256 | Copyright: 2006, David A. Mellis 257 | License: GPL-2+ 258 | 259 | Files: app/src/processing/app/tools/AutoFormat.java 260 | Copyright: 1997-98, Van Di-Han HO 261 | 2001, Jason Pell 262 | 2003, Martin Gomez 263 | 2005-09, Ben Fry and Casey Reas 264 | License: GPL-2+ 265 | 266 | Files: app/src/processing/app/tools/DiscourseFormat.java 267 | Copyright: 2005-06, Ignacio Manuel Gonzalez Moreta 268 | 2006-08, Ben Fry and Casey Reas 269 | License: GPL-2+ 270 | 271 | Files: app/src/processing/app/helpers/filefilters/OnlyDirs.java 272 | Copyright: 2011, Cristian Maglie 273 | License: GPL-2+ 274 | 275 | Files: hardware/arduino/bootloaders/atmega/ATmegaBOOT_168.c 276 | hardware/arduino/bootloaders/lilypad/src/ATmegaBOOT.c 277 | hardware/arduino/bootloaders/atmega8/ATmegaBOOT.c 278 | hardware/arduino/bootloaders/bt/ATmegaBOOT_168.c 279 | Copyright: 2003, Jason P. Kyle 280 | 2009, David A. Mellis 281 | 2009, D. Cuartielles 282 | License: GPL-2+ 283 | 284 | Files: hardware/arduino/bootloaders/stk500v2/* 285 | Copyright: 2010, Arduino Developers 286 | License: GPL-2+ 287 | 288 | Files: libraries/Ethernet/utility/w5100.* 289 | Copyright: 2008, WIZnet Co.Ltd 290 | License: GPL-2+ 291 | 292 | License: GPL-2+ 293 | This program is free software; you can redistribute it and/or modify 294 | it under the terms of the GNU General Public License as published by 295 | the Free Software Foundation; either version 2 of the License, or 296 | (at your option) any later version. 297 | . 298 | This program is distributed in the hope that it will be useful, 299 | but WITHOUT ANY WARRANTY; without even the implied warranty of 300 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 301 | GNU General Public License for more details. 302 | . 303 | A copy of the license is available on Debian systems at 304 | /usr/share/common-licenses/GPL-2 305 | 306 | License: GPL-2 307 | This program is free software; you can redistribute it and/or modify 308 | it under the terms of the GNU General Public License as published by 309 | the Free Software Foundation; version 2 of the License. 310 | . 311 | This program is distributed in the hope that it will be useful, 312 | but WITHOUT ANY WARRANTY; without even the implied warranty of 313 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 314 | GNU General Public License for more details. 315 | . 316 | A copy of the license is available on Debian systems at 317 | /usr/share/common-licenses/GPL-2 318 | 319 | Files: libraries/SD/*.h libraries/SD/*.c 320 | Copyright: 2010 SparkFun Electronics 321 | License: GPL-3 322 | 323 | Files: libraries/SD/utility/* 324 | Copyright: 2009 by William Greiman 325 | License: GPL-3+ 326 | 327 | License: GPL-3+ 328 | This program is free software; you can redistribute it and/or modify 329 | it under the terms of the GNU General Public License as published by 330 | the Free Software Foundation; either version 3 of the License, or 331 | (at your option) any later version. 332 | . 333 | This program is distributed in the hope that it will be useful, 334 | but WITHOUT ANY WARRANTY; without even the implied warranty of 335 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 336 | GNU General Public License for more details. 337 | . 338 | A copy of the license is available on Debian systems at 339 | /usr/share/common-licenses/GPL-3 340 | 341 | License: GPL-3 342 | This program is free software; you can redistribute it and/or modify 343 | it under the terms of the GNU General Public License as published by 344 | the Free Software Foundation; version 3 of the License. 345 | . 346 | This program is distributed in the hope that it will be useful, 347 | but WITHOUT ANY WARRANTY; without even the implied warranty of 348 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 349 | GNU General Public License for more details. 350 | . 351 | A copy of the license is available on Debian systems at 352 | /usr/share/common-licenses/GPL-3 353 | 354 | Files: hardware/arduino/cores/arduino/Udp.h libraries/Ethernet/EthernetUdp.* 355 | Copyright: 2008 Bjoern Hartmann 356 | License: MIT 357 | 358 | Files: hardware/arduino/cores/arduino/IPAddress.h 359 | Copyright: 2011 Adrian McEwen 360 | License: MIT 361 | 362 | License: MIT 363 | Permission is hereby granted, free of charge, to any person obtaining a copy 364 | of this software and associated documentation files (the "Software"), to deal 365 | in the Software without restriction, including without limitation the rights 366 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 367 | copies of the Software, and to permit persons to whom the Software is 368 | furnished to do so, subject to the following conditions: 369 | . 370 | The above copyright notice and this permission notice shall be included in 371 | all copies or substantial portions of the Software. 372 | . 373 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 374 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 375 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 376 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 377 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 378 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 379 | THE SOFTWARE. 380 | 381 | Files: reference/* 382 | Copyright: 2009-2012 Arduino Team 383 | License: CC-BY-SA-3.0 384 | 385 | Files: examples/Analog/* 386 | Copyright: 2008-2009, Tom Igoe 387 | 2008-2009, David Mellis 388 | 2008-2009, Randall Bohn 389 | License: CC-BY-SA-3.0 390 | 391 | Files: examples/Communication/* 392 | Copyright: 2006, David Mellis 393 | 2006, Nicholas Zambetti 394 | 2005-2006, 2008-2009, Tom Igoe 395 | 2009, Scott Fitzgerald 396 | License: CC-BY-SA-3.0 397 | 398 | Files: examples/Control/* 399 | Copyright: 2006, David Mellis 400 | 2009, Tom Igoe 401 | 2009, Scott Fitzgerald 402 | License: CC-BY-SA-3.0 403 | 404 | Files: examples/Digital/* 405 | Copyright: 2005, David Cuartielles 406 | 2005-2006, David Mellis 407 | 2005, 2009-2010, Tom Igoe 408 | 2005, DojoDave 409 | 2006, David A. Mellis 410 | 2009, Limor Fried 411 | License: CC-BY-SA-3.0 412 | 413 | Files: hardware/arduino/bootloaders/optiboot/boot.h 414 | Copyright: 2002-2007 Eric B. Weddington 415 | License: BSD 416 | 417 | Files: examples/Sensors/* 418 | Copyright: 2008, David Mellis 419 | 2009, Tom Igoe 420 | 2007, David Cuartielles 421 | License: CC-BY-SA-3.0 422 | 423 | License: CC-BY-SA-3.0 424 | THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS 425 | CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK 426 | IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF 427 | THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT 428 | LAW IS PROHIBITED. 429 | . 430 | BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT 431 | AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT 432 | THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR 433 | GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR AC‐ 434 | CEPTANCE OF SUCH TERMS AND CONDITIONS. 435 | . 436 | 1. Definitions 437 | . 438 | 1. "Adaptation" means a work based upon the Work, or upon the 439 | Work and other pre‐existing works, such as a translation, adapta‐ 440 | tion, derivative work, arrangement of music or other alterations 441 | of a literary or artistic work, or phonogram or performance and 442 | includes cinematographic adaptations or any other form in which 443 | the Work may be recast, transformed, or adapted including in any 444 | form recognizably derived from the original, except that a work 445 | that constitutes a Collection will not be considered an Adapta‐ 446 | tion for the purpose of this License. For the avoidance of doubt, 447 | where the Work is a musical work, performance or phonogram, the 448 | synchronization of the Work in timed‐relation with a moving image 449 | ("synching") will be considered an Adaptation for the purpose of 450 | this License. 451 | 2. "Collection" means a collection of literary or artistic 452 | works, such as encyclopedias and anthologies, or performances, 453 | phonograms or broadcasts, or other works or subject matter other 454 | than works listed in Section 1(f) below, which, by reason of the 455 | selection and arrangement of their contents, constitute intellec‐ 456 | tual creations, in which the Work is included in its entirety in 457 | unmodified form along with one or more other contributions, each 458 | constituting separate and independent works in themselves, which 459 | together are assembled into a collective whole. A work that con‐ 460 | stitutes a Collection will not be considered an Adaptation (as 461 | defined below) for the purposes of this License. 462 | 3. "Creative Commons Compatible License" means a license that 463 | is listed at http://creativecommons.org/compatiblelicenses that 464 | has been approved by Creative Commons as being essentially equiv‐ 465 | alent to this License, including, at a minimum, because that li‐ 466 | cense: (i) contains terms that have the same purpose, meaning and 467 | effect as the License Elements of this License; and, (ii) explic‐ 468 | itly permits the relicensing of adaptations of works made avail‐ 469 | able under that license under this License or a Creative Commons 470 | jurisdiction license with the same License Elements as this Li‐ 471 | cense. 472 | 4. "Distribute" means to make available to the public the 473 | original and copies of the Work or Adaptation, as appropriate, 474 | through sale or other transfer of ownership. 475 | 5. "License Elements" means the following high‐level license 476 | attributes as selected by Licensor and indicated in the title of 477 | this License: Attribution, ShareAlike. 478 | 6. "Licensor" means the individual, individuals, entity or en‐ 479 | tities that offer(s) the Work under the terms of this License. 480 | 7. "Original Author" means, in the case of a literary or 481 | artistic work, the individual, individuals, entity or entities 482 | who created the Work or if no individual or entity can be identi‐ 483 | fied, the publisher; and in addition (i) in the case of a perfor‐ 484 | mance the actors, singers, musicians, dancers, and other persons 485 | who act, sing, deliver, declaim, play in, interpret or otherwise 486 | perform literary or artistic works or expressions of folklore; 487 | (ii) in the case of a phonogram the producer being the person or 488 | legal entity who first fixes the sounds of a performance or other 489 | sounds; and, (iii) in the case of broadcasts, the organization 490 | that transmits the broadcast. 491 | 8. "Work" means the literary and/or artistic work offered un‐ 492 | der the terms of this License including without limitation any 493 | production in the literary, scientific and artistic domain, what‐ 494 | ever may be the mode or form of its expression including digital 495 | form, such as a book, pamphlet and other writing; a lecture, ad‐ 496 | dress, sermon or other work of the same nature; a dramatic or 497 | dramatico‐musical work; a choreographic work or entertainment in 498 | dumb show; a musical composition with or without words; a cine‐ 499 | matographic work to which are assimilated works expressed by a 500 | process analogous to cinematography; a work of drawing, painting, 501 | architecture, sculpture, engraving or lithography; a photographic 502 | work to which are assimilated works expressed by a process analo‐ 503 | gous to photography; a work of applied art; an illustration, map, 504 | plan, sketch or three‐dimensional work relative to geography, to‐ 505 | pography, architecture or science; a performance; a broadcast; a 506 | phonogram; a compilation of data to the extent it is protected as 507 | a copyrightable work; or a work performed by a variety or circus 508 | performer to the extent it is not otherwise considered a literary 509 | or artistic work. 510 | 9. "You" means an individual or entity exercising rights under 511 | this License who has not previously violated the terms of this 512 | License with respect to the Work, or who has received express 513 | permission from the Licensor to exercise rights under this Li‐ 514 | cense despite a previous violation. 515 | 10. "Publicly Perform" means to perform public recitations of 516 | the Work and to communicate to the public those public recita‐ 517 | tions, by any means or process, including by wire or wireless 518 | means or public digital performances; to make available to the 519 | public Works in such a way that members of the public may access 520 | these Works from a place and at a place individually chosen by 521 | them; to perform the Work to the public by any means or process 522 | and the communication to the public of the performances of the 523 | Work, including by public digital performance; to broadcast and 524 | rebroadcast the Work by any means including signs, sounds or im‐ 525 | ages. 526 | 11. "Reproduce" means to make copies of the Work by any means 527 | including without limitation by sound or visual recordings and 528 | the right of fixation and reproducing fixations of the Work, in‐ 529 | cluding storage of a protected performance or phonogram in digi‐ 530 | tal form or other electronic medium. 531 | . 532 | 2. Fair Dealing Rights. Nothing in this License is intended to 533 | reduce, limit, or restrict any uses free from copyright or rights 534 | arising from limitations or exceptions that are provided for in 535 | connection with the copyright protection under copyright law or 536 | other applicable laws. 537 | . 538 | 3. License Grant. Subject to the terms and conditions of this Li‐ 539 | cense, Licensor hereby grants You a worldwide, royalty‐free, non‐ 540 | exclusive, perpetual (for the duration of the applicable copy‐ 541 | right) license to exercise the rights in the Work as stated be‐ 542 | low: 543 | . 544 | 1. to Reproduce the Work, to incorporate the Work into one or 545 | more Collections, and to Reproduce the Work as incorporated in 546 | the Collections; 547 | 2. to create and Reproduce Adaptations provided that any such 548 | Adaptation, including any translation in any medium, takes rea‐ 549 | sonable steps to clearly label, demarcate or otherwise identify 550 | that changes were made to the original Work. For example, a 551 | translation could be marked "The original work was translated 552 | from English to Spanish," or a modification could indicate "The 553 | original work has been modified."; 554 | 3. to Distribute and Publicly Perform the Work including as 555 | incorporated in Collections; and, 556 | 4. to Distribute and Publicly Perform Adaptations. 557 | 5. 558 | . 559 | For the avoidance of doubt: 560 | 1. Non‐waivable Compulsory License Schemes. In those ju‐ 561 | risdictions in which the right to collect royalties through any 562 | statutory or compulsory licensing scheme cannot be waived, the 563 | Licensor reserves the exclusive right to collect such royalties 564 | for any exercise by You of the rights granted under this License; 565 | 2. Waivable Compulsory License Schemes. In those juris‐ 566 | dictions in which the right to collect royalties through any 567 | statutory or compulsory licensing scheme can be waived, the Li‐ 568 | censor waives the exclusive right to collect such royalties for 569 | any exercise by You of the rights granted under this License; 570 | and, 571 | 3. Voluntary License Schemes. The Licensor waives the 572 | right to collect royalties, whether individually or, in the event 573 | that the Licensor is a member of a collecting society that admin‐ 574 | isters voluntary licensing schemes, via that society, from any 575 | exercise by You of the rights granted under this License. 576 | . 577 | The above rights may be exercised in all media and formats 578 | whether now known or hereafter devised. The above rights include 579 | the right to make such modifications as are technically necessary 580 | to exercise the rights in other media and formats. Subject to 581 | Section 8(f), all rights not expressly granted by Licensor are 582 | hereby reserved. 583 | . 584 | 4. Restrictions. The license granted in Section 3 above is ex‐ 585 | pressly made subject to and limited by the following restric‐ 586 | tions: 587 | . 588 | 1. You may Distribute or Publicly Perform the Work only under 589 | the terms of this License. You must include a copy of, or the 590 | Uniform Resource Identifier (URI) for, this License with every 591 | copy of the Work You Distribute or Publicly Perform. You may not 592 | offer or impose any terms on the Work that restrict the terms of 593 | this License or the ability of the recipient of the Work to exer‐ 594 | cise the rights granted to that recipient under the terms of the 595 | License. You may not sublicense the Work. You must keep intact 596 | all notices that refer to this License and to the disclaimer of 597 | warranties with every copy of the Work You Distribute or Publicly 598 | Perform. When You Distribute or Publicly Perform the Work, You 599 | may not impose any effective technological measures on the Work 600 | that restrict the ability of a recipient of the Work from You to 601 | exercise the rights granted to that recipient under the terms of 602 | the License. This Section 4(a) applies to the Work as incorporat‐ 603 | ed in a Collection, but this does not require the Collection 604 | apart from the Work itself to be made subject to the terms of 605 | this License. If You create a Collection, upon notice from any 606 | Licensor You must, to the extent practicable, remove from the 607 | Collection any credit as required by Section 4(c), as requested. 608 | If You create an Adaptation, upon notice from any Licensor You 609 | must, to the extent practicable, remove from the Adaptation any 610 | credit as required by Section 4(c), as requested. 611 | 2. You may Distribute or Publicly Perform an Adaptation only 612 | under the terms of: (i) this License; (ii) a later version of 613 | this License with the same License Elements as this License; 614 | (iii) a Creative Commons jurisdiction license (either this or a 615 | later license version) that contains the same License Elements as 616 | this License (e.g., Attribution‐ShareAlike 3.0 US)); (iv) a Cre‐ 617 | ative Commons Compatible License. If you license the Adaptation 618 | under one of the licenses mentioned in (iv), you must comply with 619 | the terms of that license. If you license the Adaptation under 620 | the terms of any of the licenses mentioned in (i), (ii) or (iii) 621 | (the "Applicable License"), you must comply with the terms of the 622 | Applicable License generally and the following provisions: (I) 623 | You must include a copy of, or the URI for, the Applicable Li‐ 624 | cense with every copy of each Adaptation You Distribute or Pub‐ 625 | licly Perform; (II) You may not offer or impose any terms on the 626 | Adaptation that restrict the terms of the Applicable License or 627 | the ability of the recipient of the Adaptation to exercise the 628 | rights granted to that recipient under the terms of the Applica‐ 629 | ble License; (III) You must keep intact all notices that refer to 630 | the Applicable License and to the disclaimer of warranties with 631 | every copy of the Work as included in the Adaptation You Distrib‐ 632 | ute or Publicly Perform; (IV) when You Distribute or Publicly 633 | Perform the Adaptation, You may not impose any effective techno‐ 634 | logical measures on the Adaptation that restrict the ability of a 635 | recipient of the Adaptation from You to exercise the rights 636 | granted to that recipient under the terms of the Applicable Li‐ 637 | cense. This Section 4(b) applies to the Adaptation as incorporat‐ 638 | ed in a Collection, but this does not require the Collection 639 | apart from the Adaptation itself to be made subject to the terms 640 | of the Applicable License. 641 | 3. If You Distribute, or Publicly Perform the Work or any 642 | Adaptations or Collections, You must, unless a request has been 643 | made pursuant to Section 4(a), keep intact all copyright notices 644 | for the Work and provide, reasonable to the medium or means You 645 | are utilizing: (i) the name of the Original Author (or pseudonym, 646 | if applicable) if supplied, and/or if the Original Author and/or 647 | Licensor designate another party or parties (e.g., a sponsor in‐ 648 | stitute, publishing entity, journal) for attribution ("Attribu‐ 649 | tion Parties") in Licensor’s copyright notice, terms of service 650 | or by other reasonable means, the name of such party or parties; 651 | (ii) the title of the Work if supplied; (iii) to the extent rea‐ 652 | sonably practicable, the URI, if any, that Licensor specifies to 653 | be associated with the Work, unless such URI does not refer to 654 | the copyright notice or licensing information for the Work; and 655 | (iv) , consistent with Ssection 3(b), in the case of an Adapta‐ 656 | tion, a credit identifying the use of the Work in the Adaptation 657 | (e.g., "French translation of the Work by Original Author," or 658 | "Screenplay based on original Work by Original Author"). The 659 | credit required by this Section 4(c) may be implemented in any 660 | reasonable manner; provided, however, that in the case of a Adap‐ 661 | tation or Collection, at a minimum such credit will appear, if a 662 | credit for all contributing authors of the Adaptation or Collec‐ 663 | tion appears, then as part of these credits and in a manner at 664 | least as prominent as the credits for the other contributing au‐ 665 | thors. For the avoidance of doubt, You may only use the credit 666 | required by this Section for the purpose of attribution in the 667 | manner set out above and, by exercising Your rights under this 668 | License, You may not implicitly or explicitly assert or imply any 669 | connection with, sponsorship or endorsement by the Original Au‐ 670 | thor, Licensor and/or Attribution Parties, as appropriate, of You 671 | or Your use of the Work, without the separate, express prior 672 | written permission of the Original Author, Licensor and/or Attri‐ 673 | bution Parties. 674 | 4. Except as otherwise agreed in writing by the Licensor or as 675 | may be otherwise permitted by applicable law, if You Reproduce, 676 | Distribute or Publicly Perform the Work either by itself or as 677 | part of any Adaptations or Collections, You must not distort, mu‐ 678 | tilate, modify or take other derogatory action in relation to the 679 | Work which would be prejudicial to the Original Author’s honor or 680 | reputation. Licensor agrees that in those jurisdictions (e.g. 681 | Japan), in which any exercise of the right granted in Section 682 | 3(b) of this License (the right to make Adaptations) would be 683 | deemed to be a distortion, mutilation, modification or other 684 | derogatory action prejudicial to the Original Author’s honor and 685 | reputation, the Licensor will waive or not assert, as appropri‐ 686 | ate, this Section, to the fullest extent permitted by the appli‐ 687 | cable national law, to enable You to reasonably exercise Your 688 | right under Section 3(b) of this License (right to make Adapta‐ 689 | tions) but not otherwise. 690 | . 691 | 5. Representations, Warranties and Disclaimer 692 | . 693 | UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, 694 | LICENSOR OFFERS THE WORK AS‐IS AND MAKES NO REPRESENTATIONS OR 695 | WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, 696 | STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES 697 | OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NON‐ 698 | INFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURA‐ 699 | CY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOV‐ 700 | ERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED 701 | WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU. 702 | . 703 | 6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY AP‐ 704 | PLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY 705 | LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE 706 | OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF 707 | THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF 708 | SUCH DAMAGES. 709 | . 710 | 7. Termination 711 | . 712 | 1. This License and the rights granted hereunder will termi‐ 713 | nate automatically upon any breach by You of the terms of this 714 | License. Individuals or entities who have received Adaptations or 715 | Collections from You under this License, however, will not have 716 | their licenses terminated provided such individuals or entities 717 | remain in full compliance with those licenses. Sections 1, 2, 5, 718 | 6, 7, and 8 will survive any termination of this License. 719 | 2. Subject to the above terms and conditions, the license 720 | granted here is perpetual (for the duration of the applicable 721 | copyright in the Work). Notwithstanding the above, Licensor re‐ 722 | serves the right to release the Work under different license 723 | terms or to stop distributing the Work at any time; provided, 724 | however that any such election will not serve to withdraw this 725 | License (or any other license that has been, or is required to 726 | be, granted under the terms of this License), and this License 727 | will continue in full force and effect unless terminated as stat‐ 728 | ed above. 729 | . 730 | 8. Miscellaneous 731 | . 732 | 1. Each time You Distribute or Publicly Perform the Work or a 733 | Collection, the Licensor offers to the recipient a license to the 734 | Work on the same terms and conditions as the license granted to 735 | You under this License. 736 | 2. Each time You Distribute or Publicly Perform an Adaptation, 737 | Licensor offers to the recipient a license to the original Work 738 | on the same terms and conditions as the license granted to You 739 | under this License. 740 | 3. If any provision of this License is invalid or unenforce‐ 741 | able under applicable law, it shall not affect the validity or 742 | enforceability of the remainder of the terms of this License, and 743 | without further action by the parties to this agreement, such 744 | provision shall be reformed to the minimum extent necessary to 745 | make such provision valid and enforceable. 746 | 4. No term or provision of this License shall be deemed waived 747 | and no breach consented to unless such waiver or consent shall be 748 | in writing and signed by the party to be charged with such waiver 749 | or consent. 750 | 5. This License constitutes the entire agreement between the 751 | parties with respect to the Work licensed here. There are no un‐ 752 | derstandings, agreements or representations with respect to the 753 | Work not specified here. Licensor shall not be bound by any addi‐ 754 | tional provisions that may appear in any communication from You. 755 | This License may not be modified without the mutual written 756 | agreement of the Licensor and You. 757 | 6. The rights granted under, and the subject matter refer‐ 758 | enced, in this License were drafted utilizing the terminology of 759 | the Berne Convention for the Protection of Literary and Artistic 760 | Works (as amended on September 28, 1979), the Rome Convention of 761 | 1961, the WIPO Copyright Treaty of 1996, the WIPO Performances 762 | and Phonograms Treaty of 1996 and the Universal Copyright Conven‐ 763 | tion (as revised on July 24, 1971). These rights and subject mat‐ 764 | ter take effect in the relevant jurisdiction in which the License 765 | terms are sought to be enforced according to the corresponding 766 | provisions of the implementation of those treaty provisions in 767 | the applicable national law. If the standard suite of rights 768 | granted under applicable copyright law includes additional rights 769 | not granted under this License, such additional rights are deemed 770 | to be included in the License; this License is not intended to 771 | restrict the license of any rights under applicable law. 772 | 773 | License: BSD 774 | Redistribution and use in source and binary forms, with or without 775 | modification, are permitted provided that the following conditions are met: 776 | . 777 | * Redistributions of source code must retain the above copyright 778 | notice, this list of conditions and the following disclaimer. 779 | * Redistributions in binary form must reproduce the above copyright 780 | notice, this list of conditions and the following disclaimer in 781 | the documentation and/or other materials provided with the 782 | distribution. 783 | * Neither the name of the copyright holders nor the names of 784 | contributors may be used to endorse or promote products derived 785 | from this software without specific prior written permission. 786 | . 787 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 788 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 789 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 790 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 791 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 792 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 793 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 794 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 795 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 796 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 797 | POSSIBILITY OF SUCH DAMAGE. 798 | 799 | License: Expat 800 | Permission is hereby granted, free of charge, to any person obtaining a copy 801 | of this software and associated documentation files (the "Software"), to deal 802 | in the Software without restriction, including without limitation the rights 803 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 804 | copies of the Software, and to permit persons to whom the Software is 805 | furnished to do so, subject to the following conditions: 806 | . 807 | The above copyright notice and this permission notice shall be included in 808 | all copies or substantial portions of the Software. 809 | . 810 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 811 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 812 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 813 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 814 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 815 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 816 | THE SOFTWARE. 817 | -------------------------------------------------------------------------------- /debian/copyright_hints: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShorTie8/Arduino_IDE/5b721896dc62227d8f3e44a24de06e8087fdf290/debian/copyright_hints -------------------------------------------------------------------------------- /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/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/icons/128x128/apps/arduino.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShorTie8/Arduino_IDE/5b721896dc62227d8f3e44a24de06e8087fdf290/debian/icons/128x128/apps/arduino.png -------------------------------------------------------------------------------- /debian/icons/16x16/apps/arduino.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShorTie8/Arduino_IDE/5b721896dc62227d8f3e44a24de06e8087fdf290/debian/icons/16x16/apps/arduino.png -------------------------------------------------------------------------------- /debian/icons/24x24/apps/arduino.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShorTie8/Arduino_IDE/5b721896dc62227d8f3e44a24de06e8087fdf290/debian/icons/24x24/apps/arduino.png -------------------------------------------------------------------------------- /debian/icons/256x256/apps/arduino.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShorTie8/Arduino_IDE/5b721896dc62227d8f3e44a24de06e8087fdf290/debian/icons/256x256/apps/arduino.png -------------------------------------------------------------------------------- /debian/icons/32x32/apps/arduino.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShorTie8/Arduino_IDE/5b721896dc62227d8f3e44a24de06e8087fdf290/debian/icons/32x32/apps/arduino.png -------------------------------------------------------------------------------- /debian/icons/48x48/apps/arduino.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShorTie8/Arduino_IDE/5b721896dc62227d8f3e44a24de06e8087fdf290/debian/icons/48x48/apps/arduino.png -------------------------------------------------------------------------------- /debian/linkjars: -------------------------------------------------------------------------------- 1 | app/lib 2 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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/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/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/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/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/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/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 |