arch 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. # Copyright (C) 2023 Andreas Hartmann <andreas@ohok.org>
  8. #
  9. # This program is free software: you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation, either version 3 of the License, or
  12. # (at your option) any later version.
  13. #
  14. # This program is distributed in the hope that it will be useful,
  15. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. # GNU General Public License for more details.
  18. #
  19. # You should have received a copy of the GNU General Public License
  20. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  21. #
  22. if [ "$(id -u)" -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 python 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 python
  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 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 p7zip
  65. # U-Boot build dependencies
  66. # ------------------------------------------------------------
  67. pacman -S --needed --noconfirm swig dtc
  68. printf "You also need unifont and bdf-unifont from AUR, to build GRUB:\n"
  69. printf "https://aur.archlinux.org/pkgbase/unifont\n"
  70. printf "https://aur.archlinux.org/pkgbase/bdf-unifont\n"