diff options
Diffstat (limited to 'development/arduino/arduino.SlackBuild')
-rw-r--r-- | development/arduino/arduino.SlackBuild | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/development/arduino/arduino.SlackBuild b/development/arduino/arduino.SlackBuild index abf5409d7634..dd52ecb03597 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 |