Commit 25e108aa authored by AlmAck's avatar AlmAck

arduino 1.8.7

parent 5bf5e47d
# Maintainer: Niels Martignène <niels.martignene@gmail.com>
# Contributor: PyroPeter <googlemail.com@abi1789>
# Contributor: darkapex <me@jailuthra.in>
# Contributor: tty0 <vt.tty0[d0t]gmail.com>
pkgname=arduino
pkgver=1.6.7
pkgrel=1
pkgdesc="Arduino prototyping platform SDK"
arch=('x86_64')
url="http://arduino.cc/en/Main/Software"
options=(!strip staticlibs)
license=('GPL' 'LGPL')
depends=('gtk2' 'libusb-compat' 'java-runtime' 'desktop-file-utils' 'giflib' 'avrdude')
makedepends=('icoutils')
install="arduino.install"
source=('arduino.desktop'
'arduino.xml'
"http://downloads.arduino.cc/arduino-${pkgver}-linux64.tar.xz")
sha256sums=('ee29f80cc63cf3a21e844372721686372c2ca4b36e35430350d72e0b788a0ae2'
'473b82156505e9bd903e4d8484e8d183f2e3bf3c1f7e29940b815929ae597b68'
'd8667da7299807ae76c4957d7c9501c437b768c88af710744d3759e95bf658d7')
build() {
cd "arduino-${pkgver}"
icotool -x -o .. lib/arduino_icon.ico
}
package() {
cd "arduino-${pkgver}"
mkdir -p "${pkgdir}/usr/bin"
mkdir -p "${pkgdir}/usr/share/"{doc,applications,mime/packages}
# copy the whole SDK to /usr/share/arduino/
cp -a . "${pkgdir}/usr/share/arduino"
# at least support the FHS a little bit
ln -s /usr/share/arduino/arduino "${pkgdir}/usr/bin/arduino"
ln -s /usr/share/arduino/reference "${pkgdir}/usr/share/doc/arduino"
# fix avrdude
rm -f "${pkgdir}/usr/share/arduino/hardware/tools/avr/bin/avrdude"{,_bin}
ln -s /usr/bin/avrdude "${pkgdir}/usr/share/arduino/hardware/tools/avr/bin/avrdude"
# desktop icon
for size in 16 32 48 256; do
install -Dm644 ../arduino_icon_*_${size}x${size}x32.png \
"${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/arduino.png"
done
# desktop and mimetype files
install -m644 "${srcdir}/arduino.desktop" "${pkgdir}/usr/share/applications/"
install -m644 "${srcdir}/arduino.xml" "${pkgdir}/usr/share/mime/packages/"
}
pkgname=arduino-builder
pkgver=1.4.1
pkgrel=1
pkgdesc="A command line tool for compiling Arduino sketches"
arch=('x86_64')
url="https://github.com/arduino/arduino-builder"
license=('GPL')
depends=('arduino-ctags')
makedepends=('go-pie' 'git' 'unzip')
#optdepends=('arduino-avr-core: AVR core with upstream avr-gcc and avrdude')
source=("${pkgname}-${pkgver}.tar.xz::https://github.com/arduino/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.xz")
sha512sums=('add5007dd91170a9a65fb3ec88edc9642f3e6037b1598583d726dd2cb41db6ccda64a96f370fe0bce38fe3685f1d274cddb34787cb86a476f29cc28a1e24ce90')
build() {
# TODO Symlink will fail in test https://github.com/golang/go/issues/15507
mkdir -p "${srcdir}/build/src/github.com/arduino/arduino-builder"
#ln -sf "${srcdir}/${pkgname}-${pkgver}" "${srcdir}/build/src/github.com/arduino/arduino-builder"
cp -a "${srcdir}/${pkgname}-${pkgver}/." "${srcdir}/build/src/github.com/arduino/arduino-builder"
export GOPATH="${srcdir}/build"
cd "${srcdir}/build"
go get github.com/go-errors/errors
go get github.com/stretchr/testify
go get github.com/jstemmer/go-junit-report
go get -u github.com/arduino/go-properties-map
go get -u github.com/arduino/go-timeutils
go get google.golang.org/grpc
go get github.com/golang/protobuf/proto
go get golang.org/x/net/context
go get github.com/fsnotify/fsnotify
#go get github.com/arduino/arduino-builder
go build github.com/arduino/arduino-builder/arduino-builder
# TODO Fix ctags test environment at build time
# https://github.com/arduino/arduino-builder/issues/202
}
check() {
# Test will download ~1GB of testfiles
echo "Running check() for the first time might take a while as it downloads ~1GB of testfiles. Skip with --nocheck"
export GOPATH="${srcdir}/build"
go test -timeout 60m github.com/arduino/arduino-builder/...
}
package() {
# Fix platform.txt for arch arduino-ctags
cd "${srcdir}/build/src/github.com/arduino/arduino-builder/hardware"
sed -i 's#^tools.ctags.path=.*#tools.ctags.path=/usr/bin#' platform.txt
sed -i 's#^tools.ctags.cmd.path=.*#tools.ctags.cmd.path={path}/arduino-ctags#' platform.txt
cd "${srcdir}/build"
# Install main tool
install -Dm755 "arduino-builder" "${pkgdir}/usr/bin/arduino-builder"
# Install platform.txt files
install -Dm644 -t "${pkgdir}/usr/share/arduino/hardware/" "${srcdir}"/build/src/github.com/arduino/arduino-builder/hardware/*
# Add documentation
install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" "${srcdir}/${pkgname}-${pkgver}/README.md"
}
From a499a10833d525c9af794c616dc40f7425110c71 Mon Sep 17 00:00:00 2001
From: Colin Watson <cjwatson@debian.org>
Date: Sat, 27 Sep 2014 14:37:19 +0100
Subject: Changed the javascript parser to set the tag's scope rather than
including it in the tag name.
Patch from Colomban.
Author: David Fishburn
Origin: upstream, http://sourceforge.net/p/ctags/code/791/
Bug-Debian: https://bugs.debian.org/742605
Last-Update: 2014-09-27
Patch-Name: jscript-set-tag-scope.patch
---
jscript.c | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++---
1 file changed, 51 insertions(+), 3 deletions(-)
diff --git a/jscript.c b/jscript.c
index 5de3367..a790355 100644
--- a/jscript.c
+++ b/jscript.c
@@ -215,6 +215,7 @@ static void deleteToken (tokenInfo *const token)
* Tag generation functions
*/
+/*
static void makeConstTag (tokenInfo *const token, const jsKind kind)
{
if (JsKinds [kind].enabled && ! token->ignoreTag )
@@ -238,12 +239,13 @@ static void makeJsTag (tokenInfo *const token, const jsKind kind)
if (JsKinds [kind].enabled && ! token->ignoreTag )
{
- /*
+ *
* If a scope has been added to the token, change the token
* string to include the scope when making the tag.
- */
+ *
if ( vStringLength(token->scope) > 0 )
{
+ *
fulltag = vStringNew ();
vStringCopy(fulltag, token->scope);
vStringCatS (fulltag, ".");
@@ -251,8 +253,54 @@ static void makeJsTag (tokenInfo *const token, const jsKind kind)
vStringTerminate(fulltag);
vStringCopy(token->string, fulltag);
vStringDelete (fulltag);
+ *
+ jsKind parent_kind = JSTAG_CLASS;
+
+ *
+ * if we're creating a function (and not a method),
+ * guess we're inside another function
+ *
+ if (kind == JSTAG_FUNCTION)
+ parent_kind = JSTAG_FUNCTION;
+
+ e.extensionFields.scope[0] = JsKinds [parent_kind].name;
+ e.extensionFields.scope[1] = vStringValue (token->scope);
+ }
+ * makeConstTag (token, kind); *
+ makeTagEntry (&e);
+ }
+}
+*/
+
+static void makeJsTag (tokenInfo *const token, const jsKind kind)
+{
+ if (JsKinds [kind].enabled && ! token->ignoreTag )
+ {
+ const char *const name = vStringValue (token->string);
+ tagEntryInfo e;
+ initTagEntry (&e, name);
+
+ e.lineNumber = token->lineNumber;
+ e.filePosition = token->filePosition;
+ e.kindName = JsKinds [kind].name;
+ e.kind = JsKinds [kind].letter;
+
+ if ( vStringLength(token->scope) > 0 )
+ {
+ jsKind parent_kind = JSTAG_CLASS;
+
+ /*
+ * If we're creating a function (and not a method),
+ * guess we're inside another function
+ */
+ if (kind == JSTAG_FUNCTION)
+ parent_kind = JSTAG_FUNCTION;
+
+ e.extensionFields.scope[0] = JsKinds [parent_kind].name;
+ e.extensionFields.scope[1] = vStringValue (token->scope);
}
- makeConstTag (token, kind);
+
+ makeTagEntry (&e);
}
}
# Maintainer: NicoHood <archlinux {cat} nicohood {dog} de>
# PGP ID: 97312D5EB9D7AE7D0BD4307351DAE9B7C1AE9161
pkgname=arduino-ctags
_pkgname=ctags
pkgver=5.8_arduino11
_pkgver=5.8-arduino11
pkgrel=2
pkgdesc="A mix of ctags and anjuta-tags for the perfect C++ ctags"
arch=('x86_64')
license=('GPL')
depends=('glibc')
url="https://github.com/arduino/ctags"
source=("${pkgname}-${_pkgver}.tar.gz::https://github.com/arduino/${_pkgname}/archive/${_pkgver}.tar.gz"
"CVE-2014-7204.patch")
sha512sums=('6375077dfd983e98862773dfe6213bd41cd17d99260e39e97f99eff7d7f363f6d6a61582994382c69f0e3dfa7da88c1640a5bc037adbcc526e07f86dbd4f3646'
'212ec5d3daec5ffadc3ffe60406fc1f6b76356f2c56f99e999f8bf0646891c0067144e5de8ccbbe9391a803cd4005fe94a5973911274928dd7c1414d1ec68477')
validpgpkeys=('326567C1C6B288DF32CB061A95FA6F43E21188C4') # Arduino Packages <support@arduino.cc>
prepare() {
cd "${srcdir}/${_pkgname}-${_pkgver}"
patch -Np1 <../CVE-2014-7204.patch
sed -i 's/^CTAGS_PROG =.*/CTAGS_PROG = arduino-ctags/' Makefile.in
sed -i 's/^MANPAGE =.*/MANPAGE = arduino-ctags.1/' Makefile.in
}
build() {
cd "${srcdir}/${_pkgname}-${_pkgver}"
./configure --prefix=/usr \
--disable-external-sort
make
}
package() {
cd "${srcdir}/${_pkgname}-${_pkgver}"
make prefix=${pkgdir}/usr install
}
# Maintainer: NicoHood <archlinux {cat} nicohood {dog} de>
# PGP ID: 97312D5EB9D7AE7D0BD4307351DAE9B7C1AE9161
pkgname=arduino-docs
pkgver=1.6.6
pkgrel=4
pkgdesc="Arduino IDE reference documentation"
arch=('any')
url="https://www.arduino.cc/"
license=('CCPL')
options=(!strip)
source=("https://downloads.arduino.cc/reference-1.6.6-3.zip"
"https://downloads.arduino.cc/Galileo_help_files-1.6.2.zip"
"https://downloads.arduino.cc/Edison_help_files-1.6.2.zip")
sha512sums=('65962322b6dcb15da6c119d47c382052d1183772c855b8e8fcdd108b54e730e2374d93741737f3b51e57288a0e8842a6a7f79dce4377ea3630293e6c3e7e8b73'
'411fcfad9e9877078de62c02accd66ed5e44daf2979cad38c12962c22d73412d084670db77d5b50b3a32f35977961943e90d85ac80484f926468aa994f8b107b'
'63d4005036b43f09347814433578e8c75a7af5caa0923516deab146ef0867af4e60aad0c9d5d47870dcec0ddb4e5396363e4312425f95a8d8da8725f77da8f3a')
prepare() {
# Delete all links to source .zip files
find "${srcdir}" -maxdepth 1 -type l -exec rm -f {} \;
# Fix folder permissions of downloads
find "${srcdir}" -type d -exec chmod 755 {} \;
}
package() {
# Create directory
install -dm755 "${pkgdir}/usr/share/doc/arduino"
# Copy docs
cp -a . "${pkgdir}/usr/share/doc/arduino"
}
<?xml version='1.0' encoding='utf-8'?>
<!-- Copied from the Ubuntu package -->
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="text/x-arduino">
<comment>Arduino source code</comment>
<comment xml:lang="ara">شفرة مصدر Arduino</comment>
<comment xml:lang="be@latin">Kryničny kod Arduino</comment>
<comment xml:lang="bg">Изходен код на Arduino</comment>
<comment xml:lang="ca">codi font en Arduino</comment>
<comment xml:lang="da">Arduinokildekode</comment>
<comment xml:lang="de">Arduino-Quelltext</comment>
<comment xml:lang="el">πηγαίος κώδικας Arduino</comment>
<comment xml:lang="en_GB">Arduino source code</comment>
<comment xml:lang="eo">Arduino-fontkodo</comment>
<comment xml:lang="es">código fuente en Arduino</comment>
<comment xml:lang="eu">Arduino iturburu-kodea</comment>
<comment xml:lang="fi">Arduino-lähdekoodi</comment>
<comment xml:lang="fr">code source Arduino</comment>
<comment xml:lang="ga">cód foinseach Arduino</comment>
<comment xml:lang="hu">Arduino-forráskód</comment>
<comment xml:lang="id">Kode program Arduino</comment>
<comment xml:lang="it">Codice sorgente Arduino</comment>
<comment xml:lang="ja">Arduino ソースコード</comment>
<comment xml:lang="lt">Arduino pradinis kodas</comment>
<comment xml:lang="lv">Arduino pirmkods</comment>
<comment xml:lang="ms">Kod sumber Arduino</comment>
<comment xml:lang="nb">Arduino-kildekode</comment>
<comment xml:lang="nl">Arduino-broncode</comment>
<comment xml:lang="nn">Arduino-kjeldekode</comment>
<comment xml:lang="pl">Kod źródłowy Arduino</comment>
<comment xml:lang="pt">código fonte Arduino</comment>
<comment xml:lang="pt_BR">Código fonte Arduino</comment>
<comment xml:lang="ru">исходный код Arduino</comment>
<comment xml:lang="sq">Kod burues Arduino</comment>
<comment xml:lang="sv">Arduino-källkod</comment>
<comment xml:lang="uk">Вихідний код на мові Arduino</comment>
<comment xml:lang="vi">Mã nguồn Arduino</comment>
<comment xml:lang="zh_CN">Arduino 源代码</comment>
<comment xml:lang="zh_TW">Arduino 源代碼</comment>
<sub-class-of type="text/x-c++src"/>
<glob pattern="*.ino"/>
<glob pattern="*.pde"/>
</mime-type>
</mime-info>
# Maintainer: Niels Martignène <niels.martignene@gmail.com>
# Contributor: PyroPeter <googlemail.com@abi1789>
# Contributor: darkapex <me@jailuthra.in>
# Contributor: tty0 <vt.tty0[d0t]gmail.com>
pkgname=arduino
pkgver=1.8.7
pkgrel=1
pkgdesc="Arduino prototyping platform SDK"
arch=('x86_64')
url="https://github.com/arduino/Arduino"
options=(!strip staticlibs)
license=('GPL' 'LGPL')
depends=('gtk2' 'libusb-compat' 'java-runtime' 'desktop-file-utils' 'giflib' 'avrdude')
makedepends=('icoutils')
install="arduino.install"
source=("${pkgname}-${pkgver}.tar.xz::https://github.com/arduino/Arduino/releases/download/${pkgver}/arduino-${pkgver}.tar.xz"
"https://github.com/arduino-libraries/WiFi101-FirmwareUpdater-Plugin/releases/download/v0.9.2/WiFi101-Updater-ArduinoIDE-Plugin-0.9.2.zip"
"https://downloads.arduino.cc/libastylej-2.05.1-4.zip"
"https://downloads.arduino.cc/liblistSerials/liblistSerials-1.4.1.zip"
"arduino.sh")
sha512sums=('252ed97a878f9b47fcad3a750fd8ac2504f4bc287747a1603394f84a332d3da485a5e1d1e0a40c61c0ce004d59134d797424e693e3b258f4c1a8f921004463a9'
'2fd003b638133d9ff77d76952ce4a38c3c2ea78c0c0c849580883e5104c3a5c141313f74934eeda29a446388e3d502e69e65ded088e693b0ff5810a133001ba8'
'92ecaf24c64aaefafffe7bcdb6ae327f61dc6b9952546cb8cfad51aa1d01be7e1f5c33138f1bd2cd7cd466820ea991e0e5ad3cca62de7a543971aacbe33b06ac'
'dda89d7e9d1389eee9b399f920cb9342366452d88190bfe46278473575534c4c45e172a74e34c48bf5c8412e5246b010c0453721db087e314f67b5f67f7c8ba4'
'd97e73a6764232c5fbcdbd46d98f1dfde1d95d8256f578fb05480694423842ec864c49d572a325c7d00b026619d84dc114f1e3e0d2f8219b94871dce1718f05a')
build() {
# TODO fix manual extracting https://github.com/arduino/Arduino/issues/5619#issuecomment-427636960
#mkdir -p "Arduino-${pkgver}"
#tar -xf "${pkgname}-${pkgver}.tar.xz" -C "Arduino-${pkgver}"
cd "arduino-${pkgver}/build"
# Compile with java8
export PATH=/usr/lib/jvm/java-8-openjdk/jre/bin/:"$PATH"
# Do not include their avr-core + tools and no docs. We build them seperately
ant clean dist -Dversion="${pkgver}" build -Dlight_bundle=true \
-Dno_docs=true \
-Dlocal_sources=true \
-Dno_arduino_builder=true
}
package() {
cd "arduino-${pkgver}/build/linux/work"
# Create directories
install -dm755 "${pkgdir}/usr/share/"{doc,icons/hicolor,applications,mime/packages}
# Copy the whole SDK
cp -a . "${pkgdir}/usr/share/arduino"
# Create wrapper for java8 + buider and documentation symlink
install -Dm755 "${srcdir}/arduino.sh" "${pkgdir}/usr/bin/arduino"
# Link arduino-builder, libastylej, libserialport and docs
# TODO astyle libserialport do not work yet
# TODO remove unzip dependency once all deps are resolved
# https://github.com/arduino/ctags/issues/12
# https://github.com/arduino/Arduino/issues/5538
# https://github.com/arduino/listSerialPortsC/issues/9
# Arduino-builder
# https://bugs.archlinux.org/task/52377
# https://github.com/arduino/arduino-builder/issues/209
ln -s /usr/bin/arduino-builder "${pkgdir}/usr/share/arduino/arduino-builder"
install -dm755 "${pkgdir}/usr/share/arduino/tools-builder"
#rm "${pkgdir}/usr/share/arduino/lib/libastylej.so"
#ln -s /usr/lib/libastyle-2.05.1.so "${pkgdir}/usr/share/arduino/lib/libastylej.so"
#rm "${pkgdir}/usr/share/arduino/lib/liblistSerialsj.so"
#ln -s /usr/lib/libserialport.so "${pkgdir}/usr/share/arduino/lib/liblistSerialsj.so"
rm -r "${pkgdir}/usr/share/arduino/reference"
ln -s /usr/share/doc/arduino "${pkgdir}/usr/share/arduino/reference"
# Install desktop icons (keep a symlink for the arduino binary)
cp -a lib/icons/* "${pkgdir}/usr/share/icons/hicolor"
rm -rf "${pkgdir}/usr/share/arduino/lib/icons"
ln -s /usr/share/icons/hicolor "${pkgdir}/usr/share/arduino/lib/icons"
# Create desktop file using existing template
sed "s,<BINARY_LOCATION>,arduino %U,g;s,<ICON_NAME>,arduino,g" "lib/desktop.template" \
> "${pkgdir}/usr/share/applications/arduino.desktop"
# Install Arduino mime type
ln -s /usr/share/arduino/lib/arduino-arduinoide.xml "${pkgdir}/usr/share/mime/packages/arduino.xml"
}
#!/bin/sh
export PATH=/usr/lib/jvm/java-8-openjdk/jre/bin/:"$PATH"
exec /usr/share/arduino/arduino "$@"
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment