12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- #!/usr/bin/env bash
- # This script will attempt to setup the Linux dependencies for compiling QMK/TMK
- # This could probably go much lower, but since we are including an Arch vagrant,
- # making it the first match makes sense
- if [[ -n "$(type -P pacman )" ]]; then
- # Arch linux and derivatives like Apricity
- # Future improvements:
- # Allow user to speed up package installs using powerpill/wget tweaks
- # Always run the pacman mirror update script if possible when vagrant comes up
- # This will ensure that users never get stalled on a horribly slow mirror
- pacman -Syyu --needed --noconfirm
- pacman -S --needed --noconfirm \
- base-devel \
- avr-gcc \
- avr-binutils \
- avr-libc \
- dfu-util
- elif [[ -n "$(type -P apt-get)" ]]; then
- # Debian and derivatives
- apt-get update -y && apt-get upgrade -y
- apt-get install -y \
- build-essential \
- gcc \
- unzip \
- wget \
- zip \
- gcc-avr \
- binutils-avr \
- avr-libc \
- dfu-util
-
- elif [[ -n "$(type -P yum)" ]]; then
- # Fedora, CentOS or RHEL and derivatives
- yum -y makecache && yum -y update
- yum -y install \
- gcc \
- glibc-headers \
- kernel-devel \
- kernel-headers \
- make \
- perl \
- git \
- wget \
- avr-binutils \
- avr-gcc \
- avr-libc \
- dfu-util
- elif [[ -n "$(type -P zypper)" ]]; then
- # openSUSE
- zypper refresh --non-interactive && zypper update --non-interactive
- zypper --non-interactive install \
- git \
- make \
- gcc \
- kernel-devel \
- patch \
- wget \
- dfu-util
- fi
|