summaryrefslogtreecommitdiffstats
path: root/development/arduino/arduino.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/arduino/arduino.SlackBuild')
-rw-r--r--development/arduino/arduino.SlackBuild22
1 files changed, 16 insertions, 6 deletions
diff --git a/development/arduino/arduino.SlackBuild b/development/arduino/arduino.SlackBuild
index c7474d0d92..5e86d585e7 100644
--- a/development/arduino/arduino.SlackBuild
+++ b/development/arduino/arduino.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for arduino
-# Copyright 2015, 2016, 2017 Mario Preksavec, Zagreb, Croatia
+# Copyright 2015, 2022 Mario Preksavec, Zagreb, Croatia
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,10 +22,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=arduino
-VERSION=${VERSION:-1.8.3}
+VERSION=${VERSION:-1.8.19}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -35,7 +38,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -71,7 +81,7 @@ find -L . \
# Manual install ensues
mkdir -p $PKG/opt/$PRGNAM
-mv $PRGNAM{,-builder} examples hardware lib libraries reference \
+mv $PRGNAM{,-builder} examples hardware lib libraries \
tools{,-builder} $PKG/opt/$PRGNAM
# Make it a bit more user friendly
@@ -93,4 +103,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE