Added archlinux support to linux_install.sh

This commit is contained in:
Florens Pauwels 2018-05-01 17:08:48 +02:00 committed by Jack Humbert
parent e5540dd055
commit ddb1c83695

9
util/linux_install.sh Normal file → Executable file
View file

@ -10,6 +10,15 @@ elif grep ID /etc/os-release | grep -q debian; then
sudo apt-get install gcc unzip wget zip gcc-avr binutils-avr avr-libc \
dfu-programmer dfu-util gcc-arm-none-eabi binutils-arm-none-eabi \
libnewlib-arm-none-eabi
elif grep ID /etc/os-release | grep -q arch; then
sudo pacman -S gcc unzip wget zip avr-gcc avr-binutils avr-libc \
dfu-util arm-none-eabi-gcc arm-none-eabi-binutils \
arm-none-eabi-newlib
git clone https://aur.archlinux.org/dfu-programmer.git /tmp/dfu-programmer
cd /tmp/dfu-programmer
makepkg -sic
rm -rf /tmp/dfu-programmer/
else
echo "Sorry, we don't recognize your OS. Help us by contributing support!"
echo