blob: fd69f8b229dc9cc3d96bd0fecdd7a2776714b897 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
post_install() {
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
}
|