arch 3.1 KB

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