mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
development/arduino: Updated for version 1.6.5.
Signed-off-by: Mario Preksavec <mario@slackware.hr>
This commit is contained in:
parent
efad32028d
commit
35879f0162
6 changed files with 63 additions and 94 deletions
|
@ -1,17 +1,6 @@
|
||||||
Arduino is an open-source electronics prototyping platform based on
|
The open-source Arduino Software (IDE) makes it easy to write code and upload
|
||||||
flexible, easy-to-use hardware and software. It's intended for artists,
|
it to the board. It runs on Windows, Mac OS X, and Linux. The environment
|
||||||
designers, hobbyists, and anyone interested in creating interactive
|
is written in Java and based on Processing and other open-source software.
|
||||||
objects or environments.
|
This software can be used with any Arduino board.
|
||||||
|
|
||||||
Arduino can sense the environment by receiving input from a variety of
|
NOTE: This script repackages binary release provided by the upstream.
|
||||||
sensors and can affect its surroundings by controlling lights, motors,
|
|
||||||
and other actuators. The microcontroller on the board is programmed
|
|
||||||
using the Arduino programming language (based on Wiring) and the Arduino
|
|
||||||
development environment (based on Processing). Arduino projects can be
|
|
||||||
stand-alone or they can communicate with software on running on a
|
|
||||||
computer (e.g. Flash, Processing, MaxMSP).
|
|
||||||
|
|
||||||
The open-source Arduino environment makes it easy to write code and
|
|
||||||
upload it to the i/o board. It runs on Windows, Mac OS X, and Linux. The
|
|
||||||
environment is written in Java and based on Processing, avr-gcc, and
|
|
||||||
other open source software.
|
|
||||||
|
|
|
@ -1,22 +1,29 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Slackware build script for Arduino IDE
|
# Slackware build script for arduino
|
||||||
|
|
||||||
# Written by Diogo Leal(estranho) untill 0019.
|
# Copyright 2015 Mario Preksavec, Zagreb, Croatia
|
||||||
# Rewritten from scratch by Vliegendehuiskat since 0022.
|
# All rights reserved.
|
||||||
# E-mail: vliegendehuiskat [at] gmail [dot] com.
|
#
|
||||||
|
# Redistribution and use of this script, with or without modification, is
|
||||||
# The Java part of the Arduino IDE licensed under GPL.
|
# permitted provided that the following conditions are met:
|
||||||
# The C/C++ microcontroller library files are licensed under LGPL.
|
#
|
||||||
|
# 1. Redistributions of this script must retain the above copyright
|
||||||
# This script is released in the public domain.
|
# notice, this list of conditions and the following disclaimer.
|
||||||
# I am not responsible for any consequences that follow from the
|
#
|
||||||
# incorrect use of this script.
|
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||||
|
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||||
# Modified by Mario Preksavec <mario@slackware.hr>
|
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||||
|
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||||
|
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||||
|
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||||
|
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
PRGNAM=arduino
|
PRGNAM=arduino
|
||||||
VERSION=${VERSION:-1.6.3}
|
VERSION=${VERSION:-1.6.5}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
|
@ -35,67 +42,49 @@ OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
if [ "$ARCH" = "i486" ]; then
|
if [ "$ARCH" = "i486" ]; then
|
||||||
LIBDIRSUFFIX=""
|
LIBDIRSUFFIX=""
|
||||||
SRCSUFFIX="-linux32"
|
SRCSUFFIX="32"
|
||||||
elif [ "$ARCH" = "i686" ]; then
|
elif [ "$ARCH" = "i686" ]; then
|
||||||
LIBDIRSUFFIX=""
|
LIBDIRSUFFIX=""
|
||||||
SRCSUFFIX="-linux32"
|
SRCSUFFIX="32"
|
||||||
elif [ "$ARCH" = "x86_64" ]; then
|
elif [ "$ARCH" = "x86_64" ]; then
|
||||||
LIBDIRSUFFIX="64"
|
LIBDIRSUFFIX="64"
|
||||||
SRCSUFFIX="-linux64"
|
SRCSUFFIX="64"
|
||||||
else
|
else
|
||||||
echo "$ARCH architecture not supported"
|
echo "$ARCH is not supported."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SYSTEMFOLDER=${SYSTEMFOLDER:-/opt/$PRGNAM}
|
|
||||||
SOURCENAME=$PRGNAM-$VERSION$SRCSUFFIX.tar.xz
|
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
rm -rf $PKG
|
rm -rf $PKG
|
||||||
mkdir -p $TMP $PKG $OUTPUT
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
rm -rf $TMP/$PRGNAM-$VERSION
|
|
||||||
cd $TMP
|
cd $TMP
|
||||||
tar xvf $CWD/$SOURCENAME
|
rm -rf $PRGNAM-$VERSION
|
||||||
cd $PKG
|
tar xvf $CWD/$PRGNAM-$VERSION-linux$SRCSUFFIX.tar.xz
|
||||||
chown -R root:root $PKG $TMP/$PRGNAM-$VERSION
|
cd $PRGNAM-$VERSION
|
||||||
|
chown -R root:root .
|
||||||
find -L . \
|
find -L . \
|
||||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||||
-exec chmod 755 {} \; -o \
|
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||||
-exec chmod 644 {} \;
|
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||||
|
|
||||||
# Add a wrapper to run the arduino ide from /usr/bin
|
# Manual install ensues
|
||||||
# Its going to change the working directory to $HOME, so when you import/export
|
mkdir -p $PKG/opt/$PRGNAM
|
||||||
# into/from the ide $HOME is going to be the default directory, rather than
|
mv arduino dist examples hardware lib libraries reference tools $PKG/opt/$PRGNAM
|
||||||
# /usr/lib*/arduino/
|
|
||||||
mkdir -p $PKG/usr/bin
|
|
||||||
cat << EOF > $PKG/usr/bin/$PRGNAM
|
|
||||||
#!/bin/sh
|
|
||||||
if [ -n \${CPLUS_INCLUDE_PATH} ]; then
|
|
||||||
unset CPLUS_INCLUDE_PATH
|
|
||||||
fi
|
|
||||||
cd \$HOME
|
|
||||||
if [ \$(echo \$PATH | grep java | wc -l) -lt 1 ]; then
|
|
||||||
export PATH=\$PATH:/usr/lib$LIBDIRSUFFIX/java/bin:/usr/lib$LIBDIRSUFFIX/java/jre/bin:/usr/lib$LIBDIRSUFFIX/java/bin;
|
|
||||||
fi;
|
|
||||||
$SYSTEMFOLDER/arduino
|
|
||||||
EOF
|
|
||||||
chmod 0755 $PKG/usr/bin/$PRGNAM
|
|
||||||
|
|
||||||
mkdir -p $PKG/$SYSTEMFOLDER
|
# Make it a bit more user friendly
|
||||||
cp -a ../$PRGNAM-$VERSION/* $PKG/$SYSTEMFOLDER/
|
mkdir -p $PKG/usr/{bin,share/applications}
|
||||||
|
sed "s/FULL_PATH/\/opt\/$PRGNAM/" arduino.desktop \
|
||||||
|
> $PKG/usr/share/applications/$PRGNAM.desktop
|
||||||
|
ln -s /opt/$PRGNAM/arduino $PKG/usr/bin/$PRGNAM
|
||||||
|
|
||||||
install -D -m 644 $CWD/arduino.desktop $PKG/usr/share/applications/arduino.desktop
|
# Hack for missing libtinfo.so.5
|
||||||
install -D -m 644 $CWD/arduino.png $PKG/usr/share/pixmaps/arduino.png
|
ln -s /lib$LIBDIRSUFFIX/libncurses.so.5 \
|
||||||
|
$PKG/opt/$PRGNAM/hardware/tools/avr/lib/libtinfo.so.5
|
||||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
|
||||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a \
|
cp -a revisions.txt $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
../$PRGNAM-$VERSION/revisions.txt \
|
|
||||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
[Desktop Entry]
|
|
||||||
Name=Arduino IDE
|
|
||||||
GenericName=Arduino IDE
|
|
||||||
Comment=Arduino IDE development
|
|
||||||
Exec=/usr/bin/arduino
|
|
||||||
Icon=arduino
|
|
||||||
Terminal=false
|
|
||||||
Type=Application
|
|
||||||
Categories=KDE;Qt;GNOME;GTK;Development;
|
|
|
@ -1,10 +1,10 @@
|
||||||
PRGNAM="arduino"
|
PRGNAM="arduino"
|
||||||
VERSION="1.6.3"
|
VERSION="1.6.5"
|
||||||
HOMEPAGE="http://www.arduino.cc"
|
HOMEPAGE="http://www.arduino.cc/"
|
||||||
DOWNLOAD="http://mirror.slackware.hr/sources/arduino/arduino-1.6.3-linux32.tar.xz"
|
DOWNLOAD="http://mirror.slackware.hr/sources/arduino/arduino-1.6.5-linux32.tar.xz"
|
||||||
MD5SUM="fd1b592ce28851b063bf3fcb87bfea54"
|
MD5SUM="44c48ba7775d6e4f3b9b9513312319b9"
|
||||||
DOWNLOAD_x86_64="http://mirror.slackware.hr/sources/arduino/arduino-1.6.3-linux64.tar.xz"
|
DOWNLOAD_x86_64="http://mirror.slackware.hr/sources/arduino/arduino-1.6.5-linux64.tar.xz"
|
||||||
MD5SUM_x86_64="f1d9851ed792736498da1f50ce92126e"
|
MD5SUM_x86_64="9bf83a56b31b66c20918c20f5d60f508"
|
||||||
REQUIRES="jdk"
|
REQUIRES="jdk"
|
||||||
MAINTAINER="Mario Preksavec"
|
MAINTAINER="Mario Preksavec"
|
||||||
EMAIL="mario at slackware dot hr"
|
EMAIL="mario at slackware dot hr"
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 35 KiB |
|
@ -6,14 +6,14 @@
|
||||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||||
|
|
||||||
|-----handy-ruler------------------------------------------------------|
|
|-----handy-ruler------------------------------------------------------|
|
||||||
arduino: Arduino (IDE)
|
arduino: arduino (IDE)
|
||||||
arduino:
|
arduino:
|
||||||
arduino: The open-source Arduino environment makes it easy to write code and
|
arduino: The open-source Arduino Software (IDE) makes it easy to write code
|
||||||
arduino: upload it to the i/o board.
|
arduino: and upload it to the board. It runs on Windows, Mac OS X, and Linux.
|
||||||
|
arduino: The environment is written in Java and based on Processing and other
|
||||||
|
arduino: open-source software.
|
||||||
|
arduino: This software can be used with any Arduino board.
|
||||||
arduino:
|
arduino:
|
||||||
arduino: It runs on Windows, Mac OS X, and Linux.
|
arduino: Homepage: http://www.arduino.cc/
|
||||||
arduino:
|
|
||||||
arduino: The environment is written in Java and based on Processing,
|
|
||||||
arduino: avr-gcc, and other open source software.
|
|
||||||
arduino:
|
arduino:
|
||||||
arduino:
|
arduino:
|
||||||
|
|
Loading…
Reference in a new issue