deps-trisquel 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. #!/bin/bash
  2. # deps-trisquel script: installs build dependencies for Trisquel 6 and 7
  3. #
  4. # Copyright (C) 2014 Francis Rowe <info@gluglug.org.uk>
  5. #
  6. # This program is free software: you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation, either version 3 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. #
  19. set -u -e -v
  20. if [[ $EUID -ne 0 ]]; then
  21. echo "This script must be run as root"
  22. exit 1
  23. fi
  24. # Duplications are intentional. Please do not re-factor.
  25. #
  26. # This is so that they can moved to separate scripts.
  27. #
  28. apt-get -y install wget
  29. # For downloading source code
  30. # ------------------------------------------------------------
  31. apt-get -y install subversion git
  32. # For building source code:
  33. # ------------------------------------------------------------
  34. apt-get -y install build-essential
  35. # for cross-compiling ARM binaries
  36. apt-get -y install gcc-arm-linux-gnueabi
  37. # For cross-compiling i686 target on x86_64 host.
  38. if [ $(uname -i) = "x86_64" ] || [ $(uname -m) = "x86_64" ]
  39. then
  40. apt-get -y install gcc-multilib libc6-i386 libc6-dev-i386
  41. apt-get -y install lib32stdc++6 g++-multilib dh-autoreconf
  42. # recommended, but not sure what for:
  43. apt-get -y install lib32tinfo-dev texi2html
  44. fi
  45. # Memtest86+ build dependencies
  46. # ------------------------------------------------------------
  47. apt-get -y install build-essential
  48. # SeaBIOS build dependencies
  49. # ------------------------------------------------------------
  50. apt-get -y install build-essential
  51. # GRUB Invaders build dependencies
  52. # ------------------------------------------------------------
  53. apt-get -y install build-essential
  54. # i945-pwm build dependencies
  55. # ------------------------------------------------------------
  56. apt-get -y install build-essential
  57. # Coreboot build dependencies (also requires build-essential and git)
  58. # ------------------------------------------------------------
  59. apt-get -y install libncurses5-dev doxygen iasl gdb flex bison build-essential git
  60. # For cross-compiling i686 target on x86_64 host.
  61. if [ $(uname -i) = "x86_64" ] || [ $(uname -m) = "x86_64" ]
  62. then
  63. apt-get -y install lib32ncurses5-dev
  64. fi
  65. # GRUB build dependencies (also requires build-essential, bison and flex)
  66. # ------------------------------------------------------------
  67. apt-get -y install ttf-unifont libopts25 libselinux1-dev autogen m4 autoconf help2man libopts25-dev libfont-freetype-perl automake autotools-dev build-essential bison flex libfuse-dev liblzma-dev gawk libdevmapper-dev libtool libfreetype6-dev
  68. # BucTS build dependencies (external script)
  69. # ------------------------------------------------------------
  70. apt-get -y install build-essential
  71. # Flashrom build dependencies (also requires build-essential and subversion)
  72. # ------------------------------------------------------------
  73. apt-get -y install libpci-dev pciutils zlib1g-dev libftdi-dev build-essential subversion
  74. # For cross-compiling i686 target on x86_64 host.
  75. if [ $(uname -i) = "x86_64" ] || [ $(uname -m) = "x86_64" ]
  76. then
  77. apt-get -y install lib32z1-dev
  78. fi
  79. # ------------------- DONE ----------------------