aboutsummaryrefslogtreecommitdiff
path: root/development/arduino/arduino.SlackBuild
diff options
context:
space:
mode:
authorVliegendehuiskat <vliegendehuiskat [at] gmail [dot] com>2011-12-17 10:49:42 -0200
committerNiels Horn <niels.horn@slackbuilds.org>2011-12-17 10:49:42 -0200
commite8171a1d292c6a2fbb6385053cb0205dff3dcf37 (patch)
tree83382733b5849b9b50619cfb305e1a4dfaef619a /development/arduino/arduino.SlackBuild
parent3e082b45d464f7454dc41a121d4ec32326014702 (diff)
development/arduino: Updated for version 1.0.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'development/arduino/arduino.SlackBuild')
-rw-r--r--development/arduino/arduino.SlackBuild18
1 files changed, 9 insertions, 9 deletions
diff --git a/development/arduino/arduino.SlackBuild b/development/arduino/arduino.SlackBuild
index abf5409d76346..dd52ecb03597d 100644
--- a/development/arduino/arduino.SlackBuild
+++ b/development/arduino/arduino.SlackBuild
@@ -14,7 +14,7 @@
# incorrect use of this script.
PRGNAM=arduino
-VERSION=${VERSION:-0022}
+VERSION=${VERSION:-1.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -36,10 +36,10 @@ if [ "$ARCH" = "i486" ]; then
SRCSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
LIBDIRSUFFIX=""
- SRCSUFFIX=""
+ SRCSUFFIX="-linux"
elif [ "$ARCH" = "x86_64" ]; then
LIBDIRSUFFIX="64"
- SRCSUFFIX="-64-2"
+ SRCSUFFIX="-linux64"
else
echo "$ARCH architecture not supported"
exit 1
@@ -52,11 +52,11 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-rm -rf $TMP/$PRGNAM-$VERSION
cd $TMP
+rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$SOURCENAME
-cd $PKG
-chown -R root:root $PKG $TMP/$PRGNAM-$VERSION
+cd $PRGNAM-$VERSION
+chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
@@ -79,17 +79,17 @@ EOF
chmod 0755 $PKG/usr/bin/$PRGNAM
mkdir -p $PKG/$SYSTEMFOLDER
-cp -a ../$PRGNAM-$VERSION/* $PKG/$SYSTEMFOLDER/
+cp -a * $PKG/$SYSTEMFOLDER/
install -D -m 644 $CWD/arduino.desktop $PKG/usr/share/applications/arduino.desktop
-install -D -m 644 $CWD/arduino.png $PKG/usr/share/pixmaps/arduino.png
+install -D -m 644 reference/img/logo.png $PKG/usr/share/pixmaps/arduino.png
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
cp -a \
- ../$PRGNAM-$VERSION/revisions.txt \
+ revisions.txt \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild