diff options
author | Blair Bonnett | 2015-08-19 12:38:39 +1200 |
---|---|---|
committer | Blair Bonnett | 2015-08-19 12:38:39 +1200 |
commit | 32e1abfdf8b1db1af054ef90b0005f973a991edc (patch) | |
tree | e070d74ca68eca5a9c7acc1733c347e8ae2b4bd2 | |
download | aur-32e1abfdf8b1db1af054ef90b0005f973a991edc.tar.gz |
Arduino 1.6.5: libraries and AVR hardware support.
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 42 |
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1b137547bd99 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = arduino-noide + pkgdesc = Arduino prototyping platform without the IDE + pkgver = 1.6.5 + pkgrel = 1 + url = http://arduino.cc/en/Main/Software + arch = any + license = GPL + license = LGPL + conflicts = arduino + conflicts = arduino10 + options = !strip + source = https://github.com/arduino/Arduino/archive/1.6.5.zip + sha256sums = f1c929a8835015ac2a6d2d46a0b18bcd8da80925fd9deb05886c6c47b5047d28 + +pkgname = arduino-noide-libs + pkgdesc = Arduino prototyping platform: software libraries + +pkgname = arduino-noide-avr + pkgdesc = Arduino prototyping platform: AVR hardware support + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..fe64e7dabf4b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Blair Bonnett <blair.bonnett@gmail.com> + +# The 'sam' hardware port is not included here yet as I have +# no hardware to test it on. I dare say it would just work +# so if somebody wants to try it and let me know... + +pkgbase=arduino-noide +pkgname=('arduino-noide-libs' 'arduino-noide-avr') +pkgdesc="Arduino prototyping platform without the IDE" +pkgver=1.6.5 +pkgrel=1 +arch=('any') +url="http://arduino.cc/en/Main/Software" +conflicts=('arduino' 'arduino10') +license=('GPL' 'LGPL') +source=('https://github.com/arduino/Arduino/archive/1.6.5.zip') +sha256sums=('f1c929a8835015ac2a6d2d46a0b18bcd8da80925fd9deb05886c6c47b5047d28') +options+=(!strip) + +package_arduino-noide-libs() { + pkgdesc="Arduino prototyping platform: software libraries" + + cd "$srcdir/Arduino-1.6.5" + install -dm755 "$pkgdir/usr/share/arduino" + cp -a libraries "$pkgdir/usr/share/arduino" + + # This is just a copy of the hardware/arduino/avr/firmwares/wifishield + # directory, so no point in repeating it. + rm -rf "$pkgdir/usr/share/arduino/libraries/WiFi/extras/" +} + +package_arduino-noide-avr() { + pkgdesc="Arduino prototyping platform: AVR hardware support" + + cd "$srcdir/Arduino-1.6.5" + install -dm755 "$pkgdir/usr/share/arduino/hardware/arduino" + cp -a hardware/arduino/avr "$pkgdir/usr/share/arduino/hardware/arduino" + + # This is a simple script which only runs various make commands, + # so there's no real need to depend on bash for it. + sed -i '1c\#!/bin/sh' "$pkgdir/usr/share/arduino/hardware/arduino/avr/bootloaders/optiboot/makeall" +} |