parabola 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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 Leah Rowe <info@minifree.org>
  6. # Copyright (C) 2015 Klemens Nanni <klemens@posteo.de>
  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. [ "x${DEBUG+set}" = 'xset' ] && set -v
  22. set -u -e
  23. if [ $EUID -ne 0 ]; then
  24. printf "This script must be run as root\n"
  25. exit 1
  26. fi
  27. # Duplications are intentional. Please do not re-factor.
  28. #
  29. # This is so that they can moved to separate scripts.
  30. #
  31. pacman -S --needed wget
  32. # For downloading source code
  33. # ------------------------------------------------------------
  34. printf "Source Code: In order to download the it, git is needed\n"
  35. pacman -S --needed git
  36. # For building the documentation
  37. # ------------------------------------------------------------
  38. pacman -S --needed pandoc texi2html
  39. # For building source code:
  40. # ------------------------------------------------------------
  41. printf "Building Source Code: development packages\n"
  42. pacman -S --needed base-devel libstdc++5
  43. pacman -S arm-none-eabi-gcc
  44. pacman -S --needed libpciaccess
  45. [ "$(uname -i)" = x86_64 ] || [ "$(uname -m)" = x86_64 ]
  46. arch=${?}
  47. # For cross-compiling i686 target on x86_64 host.
  48. if [ "${arch}" -eq 0 ]; then
  49. printf "Cross-Compiling: You are running on 64-bit architecture, however 32-bit libraries are needed\n"
  50. pacman -Sl multilib &>/dev/null || (printf "You must enable the multilib repository in /etc/pacman.conf first\n"; exit 1)
  51. pacman -S --needed gcc-multilib gcc-libs-multilib lib32-libltdl lib32-libpciaccess lib32-libstdc++5 lib32-glibc lib32-fakeroot
  52. fi
  53. # Memtest86+ build dependencies
  54. # ------------------------------------------------------------
  55. # pacman -S --needed base-devel
  56. # i945-pwm build dependencies
  57. # ------------------------------------------------------------
  58. # pacman -S base-devel
  59. # Coreboot build dependencies (also requires build-essential and git)
  60. # ------------------------------------------------------------
  61. printf "Coreboot: Ncurses for menuconfig and a few other tools\n"
  62. pacman -S ncurses doxygen iasl gdb flex bison
  63. # pacman -S git base-devel
  64. # For cross-compiling i686 target on x86_64 host.
  65. if [ "${arch}" -eq 0 ]; then
  66. printf "Cross-Compiling: You are running on 64-bit architecture, however 32-bit libraries are needed\n"
  67. pacman -S --needed lib32-ncurses
  68. fi
  69. # GRUB2 build dependencies (also requires build-essential, bison and flex)
  70. # pacman -S --needed base-devel bison flex
  71. printf "GRUB: Fonts, (crypto) filesystem support, automake, etc.\n"
  72. pacman -S --needed autogen m4 autoconf help2man freetype2 automake fuse fuse-exfat xz gawk device-mapper libtool python
  73. pacman -S --needed bdf-unifont # trying this, otherwise there was an error. I'll try AUR if this won't work.
  74. # BucTS build dependencies (external script)
  75. # ------------------------------------------------------------
  76. # pacman -S --needed base-devel
  77. # Flashrom build dependencies (also requires build-essential)
  78. # ------------------------------------------------------------
  79. printf "Flashrom: Your external programmer will be most probably using PCI bus, FTDI chips need additional libraries\n"
  80. pacman -S --needed pciutils zlib libftdi libftdi-compat
  81. # pacman -S --needed base-devel