parabola 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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. # 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 source code:
  37. # ------------------------------------------------------------
  38. printf "Building Source Code: development packages\n"
  39. pacman -S --needed base-devel libstdc++5
  40. pacman -S arm-none-eabi-gcc
  41. pacman -S --needed libpciaccess
  42. # For cross-compiling i686 target on x86_64 host.
  43. if [ "$(uname -i)" = "x86_64" ] || [ "$(uname -m)" = "x86_64" ]
  44. then
  45. printf "Cross-Compiling: You are running on 64-bit architecture, however 32-bit libraries are needed\n"
  46. pacman -Sl --needed multilib 1&>/dev/null || (printf "You must enable the multilib repository in /etc/pacman.conf first\n"; exit 1)
  47. pacman -S --needed gcc{,-libs}-multilib lib32-{lib{ltdl,pciaccess,stdc++5},glibc,fakeroot}
  48. fi
  49. # Memtest86+ build dependencies
  50. # ------------------------------------------------------------
  51. # pacman -S --needed base-devel
  52. # i945-pwm build dependencies
  53. # ------------------------------------------------------------
  54. # pacman -S base-devel
  55. # Coreboot build dependencies (also requires build-essential and git)
  56. # ------------------------------------------------------------
  57. printf "Coreboot: Ncurses for menuconfig and a few other tools\n"
  58. pacman -S ncurses doxygen iasl gdb flex bison
  59. # pacman -S git base-devel
  60. # For cross-compiling i686 target on x86_64 host.
  61. if [ "$(uname -i)" = "x86_64" ] || [ "$(uname -m)" = "x86_64" ]
  62. then
  63. printf "Cross-Compiling: You are running on 64-bit architecture, however 32-bit libraries are needed\n"
  64. pacman -S --needed lib32-ncurses
  65. fi
  66. # GRUB build dependencies (also requires build-essential, bison and flex)
  67. # ------------------------------------------------------------
  68. # pacman -S --needed base-devel bison flex
  69. printf "GRUB: Fonts, (crypto) filesystem support, automake, etc.\n"
  70. pacman -S --needed autogen m4 autoconf help2man freetype2 automake fuse fuse-exfat xz gawk device-mapper libtool python
  71. pacman -S --needed bdf-unifont # trying this, otherwise there was an error. I'll try AUR if this won't work.
  72. # BucTS build dependencies (external script)
  73. # ------------------------------------------------------------
  74. # pacman -S --needed base-devel
  75. # Flashrom build dependencies (also requires build-essential)
  76. # ------------------------------------------------------------
  77. printf "Flashrom: Your external programmer will be most probably using PCI bus, FTDI chips need additional libraries\n"
  78. pacman -S --needed pciutils zlib libftdi libftdi-compat
  79. # pacman -S --needed base-devel