2 # This script will attempt to setup the Linux dependencies for compiling QMK/TMK
4 # This could probably go much lower, but since we are including an Arch vagrant,
5 # making it the first match makes sense
7 if [[ -n "$(type -P pacman )" ]]; then
8 # Arch linux and derivatives like Apricity
9 pacman -S --needed --noconfirm base-devel avr-gcc avr-binutils avr-libc dfu-utils
11 elif [[ -n "$(type -P apt-get)" ]]; then
12 # Debian and derivatives
13 apt-get install -y build-essential gcc unzip wget zip gcc-avr binutils-avr avr-libc
15 elif [[ -n "$(type -P yum)" ]]; then
16 # Fedora, CentOS or RHEL and derivatives
17 yum -y install gcc glibc-headers kernel-devel kernel-headers make perl git wget
19 elif [[ -n "$(type -P zypper)" ]]; then
21 zypper --non-interactive install git make gcc kernel-devel patch wget