summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiels Martignène2015-06-10 10:52:49 +0200
committerNiels Martignène2015-06-10 10:52:49 +0200
commitb6dd46a0c07544bc2b74f509c56a60e4f07cd0e0 (patch)
treea19cf058e9144368c7bcca1125cd4b593fa1bd97
downloadaur-b6dd46a0c07544bc2b74f509c56a60e4f07cd0e0.tar.gz
Initial import
-rw-r--r--.SRCINFO34
-rw-r--r--PKGBUILD65
-rw-r--r--arduino-fix-arguments.patch25
-rw-r--r--arduino.desktop11
-rw-r--r--arduino.install15
-rw-r--r--arduino.xml44
6 files changed, 194 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..160f4598153
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,34 @@
+pkgbase = arduino10
+ pkgdesc = Arduino prototyping platform SDK (old version)
+ pkgver = 1.0.6
+ pkgrel = 2
+ epoch = 1
+ url = http://arduino.cc/en/Main/Software
+ install = arduino.install
+ arch = i686
+ arch = x86_64
+ license = GPL
+ license = LGPL
+ makedepends = icoutils
+ depends = gtk2
+ depends = libusb-compat
+ depends = java-runtime
+ depends = java-rxtx
+ depends = desktop-file-utils
+ conflicts = arduino
+ conflicts = arduino-toolchain
+ options = !strip
+ options = staticlibs
+ source = arduino-fix-arguments.patch
+ source = arduino.desktop
+ source = arduino.xml
+ sha256sums = 631921fce485d14c79bcdc31d5d6f3a95d729d49975390b6b785fe49d238ff65
+ sha256sums = d817829bb2830cb690ed63f14d8a990bb513bef4a4ebc6227a82abdfc8bcd35d
+ sha256sums = 473b82156505e9bd903e4d8484e8d183f2e3bf3c1f7e29940b815929ae597b68
+ source_i686 = http://downloads.arduino.cc/arduino-1.0.6-linux32.tgz
+ sha256sums_i686 = f059a572231abafb92099a3a404c0a41502c3413668610676c40029384edc658
+ source_x86_64 = http://downloads.arduino.cc/arduino-1.0.6-linux64.tgz
+ sha256sums_x86_64 = 1ff175c487de335981d3aad64cf212b56cb2c778a6bdd6655045335ffc65e147
+
+pkgname = arduino10
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..bd7baad200b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,65 @@
+# 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=arduino10
+epoch=1
+pkgver=1.0.6
+pkgrel=2
+pkgdesc="Arduino prototyping platform SDK (old version)"
+arch=('i686' 'x86_64')
+url="http://arduino.cc/en/Main/Software"
+options=(!strip staticlibs)
+license=('GPL' 'LGPL')
+depends=('gtk2' 'libusb-compat' 'java-runtime' 'java-rxtx' 'desktop-file-utils')
+makedepends=('icoutils')
+conflicts=('arduino' 'arduino-toolchain')
+install="arduino.install"
+source=('arduino-fix-arguments.patch'
+ 'arduino.desktop'
+ 'arduino.xml')
+source_i686+=("http://downloads.arduino.cc/arduino-${pkgver}-linux32.tgz")
+source_x86_64+=("http://downloads.arduino.cc/arduino-${pkgver}-linux64.tgz")
+sha256sums=('631921fce485d14c79bcdc31d5d6f3a95d729d49975390b6b785fe49d238ff65'
+ 'd817829bb2830cb690ed63f14d8a990bb513bef4a4ebc6227a82abdfc8bcd35d'
+ '473b82156505e9bd903e4d8484e8d183f2e3bf3c1f7e29940b815929ae597b68')
+sha256sums_i686+=('f059a572231abafb92099a3a404c0a41502c3413668610676c40029384edc658')
+sha256sums_x86_64+=('1ff175c487de335981d3aad64cf212b56cb2c778a6bdd6655045335ffc65e147')
+
+prepare() {
+ cd "arduino-${pkgver}"
+
+ patch -Np1 <"${srcdir}/arduino-fix-arguments.patch"
+
+ 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"
+
+ # use system's RXTX library
+ ln -sf /usr/lib/librxtxSerial.so "${pkgdir}/usr/share/arduino/lib/librxtxSerial.so"
+ ln -sf /usr/lib/librxtxSerial.so "${pkgdir}/usr/share/arduino/lib/librxtxSerial64.so"
+ ln -sf /usr/share/java/rxtx/RXTXcomm.jar "${pkgdir}/usr/share/arduino/lib/RXTXcomm.jar"
+
+ # 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"
+
+ # 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/arduino-fix-arguments.patch b/arduino-fix-arguments.patch
new file mode 100644
index 00000000000..1cafeedde9c
--- /dev/null
+++ b/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/arduino.desktop b/arduino.desktop
new file mode 100644
index 00000000000..180dea615bf
--- /dev/null
+++ b/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/arduino.install b/arduino.install
new file mode 100644
index 00000000000..b4c07efb79e
--- /dev/null
+++ b/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 <user> uucp && gpasswd -a <user> lock (execute as root)"
+}
+
+post_remove() {
+ post_upgrade
+}
diff --git a/arduino.xml b/arduino.xml
new file mode 100644
index 00000000000..166b5a245f3
--- /dev/null
+++ b/arduino.xml
@@ -0,0 +1,44 @@
+<?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>