arch 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. #!/usr/bin/env bash
  2. # arch script: installs build dependencies for Arch Linux
  3. #
  4. # Copyright (C) 2021 Melissa Goad <mszoopers@protonmail.com>
  5. #
  6. # This program is free software: you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation, either version 3 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. #
  19. [ "x${DEBUG+set}" = 'xset' ] && set -v
  20. set -u -e
  21. if [ $EUID -ne 0 ]; then
  22. printf "This script must be run as root\n"
  23. exit 1
  24. fi
  25. # Duplications are intentional. Please do not re-factor.
  26. #
  27. # This is so that they can moved to separate scripts.
  28. #
  29. pacman -S --needed --noconfirm wget
  30. # For downloading source code
  31. # ------------------------------------------------------------
  32. pacman -S --needed --noconfirm git
  33. # For Tianocore and iPXE
  34. # TODO: check whether this is the full list
  35. pacman -S --needed --noconfirm nasm perl-libwww python2 subversion
  36. # For building source code:
  37. # ------------------------------------------------------------
  38. pacman -S --needed --noconfirm base-devel
  39. # for running the crostool script (to get mrc.bin file for t440p)
  40. pacman -S --needed --noconfirm sharutils curl parted e2fsprogs unzip
  41. # for cross-compiling ARM binaries
  42. pacman -S --needed --noconfirm arm-none-eabi-gcc
  43. # Memtest86+ build dependencies
  44. # ------------------------------------------------------------
  45. pacman -S --needed --noconfirm base-devel python2
  46. # i945-pwm build dependencies
  47. # ------------------------------------------------------------
  48. pacman -S --needed --noconfirm base-devel perl
  49. # Coreboot build dependencies (also requires build-essential and git)
  50. # ------------------------------------------------------------
  51. pacman -S --needed --noconfirm ncurses doxygen acpica gdb flex bison base-devel git openssl gcc-ada
  52. # GRUB build dependencies (also requires build-essential, bison and flex)
  53. # ------------------------------------------------------------
  54. pacman -S --needed --noconfirm bdf-unifont autogen help2man base-devel bison flex ttf-dejavu texinfo rsync python libusb xz gawk device-mapper fuse2 gettext freetype2
  55. # BucTS build dependencies (external script)
  56. # ------------------------------------------------------------
  57. pacman -S --needed --noconfirm base-devel
  58. # Flashrom build dependencies (also requires build-essential)
  59. # ------------------------------------------------------------
  60. pacman -S --needed --noconfirm libpciaccess pciutils zlib libftdi base-devel libusb