aboutsummaryrefslogtreecommitdiff
path: root/development/arduino-cli
diff options
context:
space:
mode:
authorEbben Aries <slackbuilds@dscp.org>2023-10-19 12:56:50 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-10-28 13:11:50 +0700
commit9eca743e70f467a462e34170377f7d48574f6a23 (patch)
treec731402f6b4ce6ab263488eaa5ddcf87e1b5a7ce /development/arduino-cli
parentf41e9a73252bd163bed0c8bd3144894b9ebadbb4 (diff)
development/arduino-cli: Added (tool to manage arduino).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org> Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Diffstat (limited to 'development/arduino-cli')
-rw-r--r--development/arduino-cli/README4
-rw-r--r--development/arduino-cli/arduino-cli.SlackBuild79
-rw-r--r--development/arduino-cli/arduino-cli.info10
-rw-r--r--development/arduino-cli/slack-desc19
4 files changed, 112 insertions, 0 deletions
diff --git a/development/arduino-cli/README b/development/arduino-cli/README
new file mode 100644
index 000000000000..fbf53be4219d
--- /dev/null
+++ b/development/arduino-cli/README
@@ -0,0 +1,4 @@
+Arduino CLI is an all-in-one solution that provides Boards/Library
+Managers, sketch builder, board detection, uploader, and many other
+tools needed to use any Arduino compatible board and platform from
+command line or machine interfaces.
diff --git a/development/arduino-cli/arduino-cli.SlackBuild b/development/arduino-cli/arduino-cli.SlackBuild
new file mode 100644
index 000000000000..0a4fdf07709e
--- /dev/null
+++ b/development/arduino-cli/arduino-cli.SlackBuild
@@ -0,0 +1,79 @@
+#!/bin/bash
+
+# Slackware build script for Arduino CLI
+
+# Copyright 2022 Ebben Aries <slackbuilds@dscp.org>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# 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.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=arduino-cli
+VERSION=${VERSION:-0.34.2}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ ARCH=$( uname -m )
+fi
+
+if [ "$ARCH" = "i586" ]; then
+ BIT="32bit"
+elif [ "$ARCH" = "x86_64" ]; then
+ BIT="64bit"
+else
+ echo "$ARCH is not supported."
+ exit 1
+fi
+
+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}
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+tar xvf $CWD/${PRGNAM}_${VERSION}_Linux_${BIT}.tar.gz
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+mkdir -p $PKG/usr/bin
+cp -a $PRGNAM $PKG/usr/bin/$PRGNAM
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSE.txt $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/development/arduino-cli/arduino-cli.info b/development/arduino-cli/arduino-cli.info
new file mode 100644
index 000000000000..cb1593a5de7a
--- /dev/null
+++ b/development/arduino-cli/arduino-cli.info
@@ -0,0 +1,10 @@
+PRGNAM="arduino-cli"
+VERSION="0.34.2"
+HOMEPAGE="https://www.arduino.cc/pro/cli"
+DOWNLOAD="https://github.com/arduino/arduino-cli/releases/download/0.34.2/arduino-cli_0.34.2_Linux_32bit.tar.gz"
+MD5SUM="4bf3fa2c5df3851603391e9ce4b543bd"
+DOWNLOAD_x86_64="https://github.com/arduino/arduino-cli/releases/download/0.34.2/arduino-cli_0.34.2_Linux_64bit.tar.gz"
+MD5SUM_x86_64="cd957f6a450c6eb8b94bc96e50fce76e"
+REQUIRES=""
+MAINTAINER="Ebben Aries"
+EMAIL="slackbuilds@dscp.org"
diff --git a/development/arduino-cli/slack-desc b/development/arduino-cli/slack-desc
new file mode 100644
index 000000000000..519d915377ce
--- /dev/null
+++ b/development/arduino-cli/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+arduino-cli: arduino-cli (tool to manage arduino)
+arduino-cli:
+arduino-cli: Arduino CLI is an all-in-one solution that provides Boards/Library
+arduino-cli: Managers, sketch builder, board detection, uploader, and many other
+arduino-cli: tools needed to use any Arduino compatible board and platform from
+arduino-cli: command line or machine interfaces.
+arduino-cli:
+arduino-cli:
+arduino-cli: Homepage: https://github.com/arduino/arduino-cli
+arduino-cli:
+arduino-cli: