summaryrefslogtreecommitdiffstats
path: root/development/arduino
diff options
context:
space:
mode:
Diffstat (limited to 'development/arduino')
-rw-r--r--development/arduino/README9
-rw-r--r--development/arduino/arduino.SlackBuild22
-rw-r--r--development/arduino/arduino.info12
3 files changed, 27 insertions, 16 deletions
diff --git a/development/arduino/README b/development/arduino/README
index 42e0e0921a..6d4e9b8d59 100644
--- a/development/arduino/README
+++ b/development/arduino/README
@@ -1,6 +1,7 @@
-The open-source Arduino Software (IDE) makes it easy to write code and upload
-it to the board. It runs on Windows, Mac OS X, and Linux. The environment
-is written in Java and based on Processing and other open-source software.
-This software can be used with any Arduino board.
+The open-source Arduino Software (IDE) makes it easy to write code and
+upload it to the board. It runs on Windows, Mac OS X, and Linux. The
+environment is written in Java and based on Processing and other
+open-source software. This software can be used with any Arduino
+board.
NOTE: This script repackages binary release provided by the upstream.
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
diff --git a/development/arduino/arduino.info b/development/arduino/arduino.info
index 8dad018095..b04b69ccda 100644
--- a/development/arduino/arduino.info
+++ b/development/arduino/arduino.info
@@ -1,10 +1,10 @@
PRGNAM="arduino"
-VERSION="1.8.3"
+VERSION="1.8.19"
HOMEPAGE="https://www.arduino.cc/"
-DOWNLOAD="http://mirror.slackware.hr/sources/arduino/arduino-1.8.3-linux32.tar.xz"
-MD5SUM="bddd208e721aad0b0d079c5eddb9b6b6"
-DOWNLOAD_x86_64="http://mirror.slackware.hr/sources/arduino/arduino-1.8.3-linux64.tar.xz"
-MD5SUM_x86_64="4385433f3ce7dda7fe58ee72da56811e"
-REQUIRES="jdk"
+DOWNLOAD="https://downloads.arduino.cc/arduino-1.8.19-linux32.tar.xz"
+MD5SUM="b0d8a5622314f555a2fe3ba24f72c6b7"
+DOWNLOAD_x86_64="https://downloads.arduino.cc/arduino-1.8.19-linux64.tar.xz"
+MD5SUM_x86_64="bd741c73da82debf93abcc2845e1480a"
+REQUIRES="zulu-openjdk8"
MAINTAINER="Mario Preksavec"
EMAIL="mario at slackware dot hr"