parabola 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. #!/bin/bash
  2. # helper script: installs build dependencies for Parabola
  3. # this script is based on the script for Trisquel 7
  4. #
  5. # Copyright (C) 2014, 2015 Francis Rowe <info@gluglug.org.uk>
  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 wget
  31. # For downloading source code
  32. # ------------------------------------------------------------
  33. pacman -S subversion git
  34. # For building source code:
  35. # ------------------------------------------------------------
  36. pacman -S base-devel libstdc++5
  37. pacman -S arm-none-eabi-gcc
  38. pacman -S pacman -S libpciaccess
  39. # For cross-compiling i686 target on x86_64 host.
  40. if [ $(uname -i) = "x86_64" ] || [ $(uname -m) = "x86_64" ]
  41. then
  42. pacman -S gcc-libs-multilib gcc-multilib lib32-fakeroot lib32-libltdl lib32-glibc lib32-libstdc++5
  43. pacman -S lib32-libpciaccess
  44. fi
  45. # Memtest86+ build dependencies
  46. # ------------------------------------------------------------
  47. # pacman -S base-devel
  48. # i945-pwm build dependencies
  49. # ------------------------------------------------------------
  50. # pacman -S base-devel
  51. # Coreboot build dependencies (also requires build-essential and git)
  52. # ------------------------------------------------------------
  53. pacman -S ncurses doxygen iasl gdb flex bison
  54. # pacman -S git base-devel
  55. # For cross-compiling i686 target on x86_64 host.
  56. if [ $(uname -i) = "x86_64" ] || [ $(uname -m) = "x86_64" ]
  57. then
  58. pacman -S lib32-ncurses
  59. fi
  60. # GRUB build dependencies (also requires build-essential, bison and flex)
  61. # ------------------------------------------------------------
  62. # pacman -S base-devel bison flex
  63. pacman -S autogen m4 autoconf help2man freetype2 automake fuse fuse-exfat xz gawk device-mapper libtool python
  64. pacman -S bdf-unifont # trying this, otherwise there was an error. I'll try AUR if this won't work.
  65. # BucTS build dependencies (external script)
  66. # ------------------------------------------------------------
  67. # pacman -S base-devel
  68. # Flashrom build dependencies (also requires build-essential and subversion)
  69. # ------------------------------------------------------------
  70. pacman -S pciutils zlib libftdi libftdi-compat
  71. # pacman -S base-devel subversion
  72. # ------------------- DONE ----------------------