arch 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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 building the documentation
  34. # ------------------------------------------------------------
  35. pacman -S --needed --noconfirm pandoc
  36. # For Tianocore and iPXE
  37. # TODO: check whether this is the full list
  38. pacman -S --needed --noconfirm nasm perl-libwww python2 subversion
  39. # For building source code:
  40. # ------------------------------------------------------------
  41. pacman -S --needed --noconfirm base-devel
  42. # for running the crostool script (to get mrc.bin file for t440p)
  43. pacman -S --needed --noconfirm sharutils curl parted e2fsprogs unzip
  44. # for cross-compiling ARM binaries
  45. pacman -S --needed --noconfirm arm-none-eabi-gcc
  46. # Memtest86+ build dependencies
  47. # ------------------------------------------------------------
  48. pacman -S --needed --noconfirm base-devel python2
  49. # i945-pwm build dependencies
  50. # ------------------------------------------------------------
  51. pacman -S --needed --noconfirm base-devel perl
  52. # Coreboot build dependencies (also requires build-essential and git)
  53. # ------------------------------------------------------------
  54. pacman -S --needed --noconfirm ncurses doxygen acpica gdb flex bison base-devel git openssl gcc-ada
  55. # GRUB build dependencies (also requires build-essential, bison and flex)
  56. # ------------------------------------------------------------
  57. 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
  58. # BucTS build dependencies (external script)
  59. # ------------------------------------------------------------
  60. pacman -S --needed --noconfirm base-devel
  61. # Flashrom build dependencies (also requires build-essential)
  62. # ------------------------------------------------------------
  63. pacman -S --needed --noconfirm libpciaccess pciutils zlib libftdi base-devel libusb