From 978a2503d46c9a272ee3ac6243f3461e9ba64377 Mon Sep 17 00:00:00 2001 From: Aurelien Desbrieres Date: Sun, 8 Mar 2015 12:03:49 +0100 Subject: arduino prototyping platform sdk --- pcr/arduino/PKGBUILD | 57 +++++++++++++++++++++++++++++++++ pcr/arduino/arduino-fix-arguments.patch | 25 +++++++++++++++ pcr/arduino/arduino.desktop | 11 +++++++ pcr/arduino/arduino.install | 15 +++++++++ pcr/arduino/arduino.xml | 44 +++++++++++++++++++++++++ 5 files changed, 152 insertions(+) create mode 100644 pcr/arduino/PKGBUILD create mode 100644 pcr/arduino/arduino-fix-arguments.patch create mode 100644 pcr/arduino/arduino.desktop create mode 100644 pcr/arduino/arduino.install create mode 100644 pcr/arduino/arduino.xml (limited to 'pcr') diff --git a/pcr/arduino/PKGBUILD b/pcr/arduino/PKGBUILD new file mode 100644 index 000000000..fd4a0eb20 --- /dev/null +++ b/pcr/arduino/PKGBUILD @@ -0,0 +1,57 @@ +# Maintainer : Aurélien Desbrières +# Contributor: Niels Martignène +# Contributor: PyroPeter +# Contributor: darkapex +# Contributor: tty0 + +pkgname=arduino +epoch=1 +pkgver=1.6.0 +pkgrel=1 +pkgdesc="Arduino prototyping platform SDK" +arch=('i686' 'x86_64') +url="http://arduino.cc/en/Main/Software" +options=(!strip staticlibs) +license=('GPL' 'LGPL') +depends=('gtk2' 'libusb-compat' 'java-runtime' 'desktop-file-utils') +makedepends=('icoutils') +conflicts=('arduino-toolchain') +install="arduino.install" +source=('arduino.desktop' + 'arduino.xml') + +source_i686+=("http://arduino.cc/download_handler.php?f=/arduino-${pkgver}-linux32.tar.xz") +source_x86_64+=("http://arduino.cc/download_handler.php?f=/arduino-${pkgver}-linux64.tar.xz") + +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's broken dependency on libtinfo.so.5 + ln -s /usr/lib/libncurses.so.5 "${pkgdir}/usr/share/arduino/hardware/tools/avr/lib/libtinfo.so.5" + + # 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/" +} diff --git a/pcr/arduino/arduino-fix-arguments.patch b/pcr/arduino/arduino-fix-arguments.patch new file mode 100644 index 000000000..1cafeedde --- /dev/null +++ b/pcr/arduino/arduino-fix-arguments.patch @@ -0,0 +1,25 @@ +--- a/arduino 2013-04-11 13:31:37.000000000 +0200 ++++ b/arduino 2014-01-12 15:18:46.159694131 +0100 +@@ -2,6 +2,16 @@ + + APPDIR="$(dirname -- "$(readlink -f -- "${0}")" )" + ++args=() ++for arg in "$@" ++do ++ if [[ "$arg" == -* ]]; then ++ args+=("$arg") ++ else ++ args+=("$(realpath "$arg")") ++ fi ++done ++ + cd "$APPDIR" + + for LIB in \ +@@ -19,4 +29,4 @@ + + export PATH="${APPDIR}/java/bin:${PATH}" + +-java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel processing.app.Base "$@" ++java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel processing.app.Base "${args[@]}" diff --git a/pcr/arduino/arduino.desktop b/pcr/arduino/arduino.desktop new file mode 100644 index 000000000..180dea615 --- /dev/null +++ b/pcr/arduino/arduino.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=Arduino +GenericName=Arduino IDE +Comment=The open-source Arduino environment +TryExec=arduino +Exec=arduino %U +Icon=arduino +Type=Application +Terminal=false +MimeType=text/x-arduino; +Categories=Development; diff --git a/pcr/arduino/arduino.install b/pcr/arduino/arduino.install new file mode 100644 index 000000000..b4c07efb7 --- /dev/null +++ b/pcr/arduino/arduino.install @@ -0,0 +1,15 @@ +post_upgrade() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + update-desktop-database -q + update-mime-database /usr/share/mime >/dev/null +} + +post_install() { + post_upgrade + + echo "Don't forget to add yourself to the uucp and lock groups: gpasswd -a uucp && gpasswd -a lock (execute as root)" +} + +post_remove() { + post_upgrade +} diff --git a/pcr/arduino/arduino.xml b/pcr/arduino/arduino.xml new file mode 100644 index 000000000..166b5a245 --- /dev/null +++ b/pcr/arduino/arduino.xml @@ -0,0 +1,44 @@ + + + + + Arduino source code + شفرة مصدر Arduino + Kryničny kod Arduino + Изходен код на Arduino + codi font en Arduino + Arduinokildekode + Arduino-Quelltext + πηγαίος κώδικας Arduino + Arduino source code + Arduino-fontkodo + código fuente en Arduino + Arduino iturburu-kodea + Arduino-lähdekoodi + code source Arduino + cód foinseach Arduino + Arduino-forráskód + Kode program Arduino + Codice sorgente Arduino + Arduino ソースコード + Arduino pradinis kodas + Arduino pirmkods + Kod sumber Arduino + Arduino-kildekode + Arduino-broncode + Arduino-kjeldekode + Kod źródłowy Arduino + código fonte Arduino + Código fonte Arduino + исходный код Arduino + Kod burues Arduino + Arduino-källkod + Вихідний код на мові Arduino + Mã nguồn Arduino + Arduino 源代码 + Arduino 源代碼 + + + + + -- cgit v1.2.3-54-g00ecf