arch 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. #!/usr/bin/env sh
  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. # Copyright (C) 2022 Ferass El Hafidi <vitali64pmemail@protonmail.com>
  7. #
  8. # This program is free software: you can redistribute it and/or modify
  9. # it under the terms of the GNU General Public License as published by
  10. # the Free Software Foundation, either version 3 of the License, or
  11. # (at your option) any later version.
  12. #
  13. # This program is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. # GNU General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. #
  21. if [ "$(id -u)" -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 python 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 python
  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
  61. # Management engine extraction dependencies
  62. # ------------------------------------------------------------
  63. pacman -S --needed --noconfirm innoextract
  64. printf "You also need unifont from AUR, to build GRUB:\n"
  65. printf "https://aur.archlinux.org/pkgbase/unifont\n"