arch.sh (813B)
1 #!/usr/bin/env bash 2 3 _qmk_install() { 4 echo "Installing dependencies" 5 6 sudo pacman --needed --noconfirm -S \ 7 base-devel clang diffutils gcc git unzip wget zip python-pip \ 8 avr-binutils arm-none-eabi-binutils arm-none-eabi-gcc \ 9 arm-none-eabi-newlib avrdude dfu-programmer dfu-util \ 10 riscv64-elf-binutils riscv64-elf-gcc riscv64-elf-newlib 11 sudo pacman --needed --noconfirm -U https://archive.archlinux.org/packages/a/avr-gcc/avr-gcc-8.3.0-1-x86_64.pkg.tar.xz 12 sudo pacman --needed --noconfirm -S avr-libc # Must be installed after the above, or it will bring in the latest avr-gcc instead 13 14 sudo pacman --needed --noconfirm -S hidapi # This will fail if the community repo isn't enabled 15 16 python3 -m pip install --user -r $QMK_FIRMWARE_DIR/requirements.txt 17 }