diff options
author | NicoHood | 2016-12-13 11:46:54 +0100 |
---|---|---|
committer | NicoHood | 2016-12-13 11:46:54 +0100 |
commit | 9e556db41065cc36cbab7275cd54fdc8e9087a22 (patch) | |
tree | e0061e9ddb3473ddb3683bfdf230d78d4cd06d0d /arduino.install | |
parent | e7da076fac0bc1ddafc422eb2f4a1b5c3be0ef93 (diff) | |
download | aur-9e556db41065cc36cbab7275cd54fdc8e9087a22.tar.gz |
update to 1.6.13
Diffstat (limited to 'arduino.install')
-rw-r--r-- | arduino.install | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/arduino.install b/arduino.install index 9a2794a97038..fd69f8b229dc 100644 --- a/arduino.install +++ b/arduino.install @@ -1,4 +1,31 @@ post_install() { - echo "Add yourself to the uucp group to access the serial ports:" - echo "sudo usermod -a -G uucp <user>" + echo "Add yourself to the uucp group to access the serial ports:" + echo "sudo usermod -a -G uucp <user>" + echo "Please checkout the wiki for further information." +} + +pre_upgrade() { + if [[ $(vercmp 1:1.6.12-1 "$2") -eq 1 ]]; then + echo "If arduino fails to install try to manually remove it first:" + echo "sudo pacman -Rs arduino" + fi +} + +_1:1.6.12_1_changes() { + echo ":: arduino is now split into arduino-builder, arduino-avr-core and arduino-docs" + echo " If arduino fails to run, check for a zombie folder:" + echo " ls -la /usr/share/arduino/hardware/avr" + echo " It might be left from a very old upgrade. Please remove it." +} + +post_upgrade() { + local v upgrades=( + 1:1.6.12-1 + ) + + for v in "${upgrades[@]}"; do + if [[ $(vercmp "$v" "$2") -eq 1 ]]; then + "_${v//-/_}_changes" + fi + done } |