trisquel7 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. #!/usr/bin/env bash
  2. # for_trisquel7 script: installs build dependencies for Trisquel 7
  3. #
  4. # Copyright (C) 2014, 2015 Leah Rowe <info@minifree.org>
  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. [ "x${DEBUG+set}" = 'xset' ] && set -v
  20. set -u -e
  21. if [ $EUID -ne 0 ]; then
  22. printf "This script must be run as root\n"
  23. exit 1
  24. fi
  25. # Duplications are intentional. Please do not re-factor.
  26. #
  27. # This is so that they can moved to separate scripts.
  28. #
  29. apt-get -y install wget
  30. # For downloading source code
  31. # ------------------------------------------------------------
  32. apt-get -y install git
  33. # For building the documentation
  34. # ------------------------------------------------------------
  35. apt-get -y install pandoc texi2html texinfo texlive
  36. # For building source code:
  37. # ------------------------------------------------------------
  38. apt-get -y install build-essential
  39. # for cross-compiling ARM binaries
  40. apt-get -y install gcc-arm-linux-gnueabi || printf "debian stretch ftw\n"
  41. [ "$(uname -i)" = x86_64 ] || [ "$(uname -m)" = x86_64 ]
  42. arch=${?}
  43. # For cross-compiling i686 target on x86_64 host.
  44. if [ "${arch}" -eq 0 ]; then
  45. apt-get -y install gcc-multilib libc6-i386 libc6-dev-i386
  46. apt-get -y install lib32stdc++6 g++-multilib dh-autoreconf
  47. # recommended, but not sure what for:
  48. apt-get -y install lib32tinfo-dev texi2html
  49. fi
  50. # Memtest86+ build dependencies
  51. # ------------------------------------------------------------
  52. apt-get -y install build-essential
  53. # i945-pwm build dependencies
  54. # ------------------------------------------------------------
  55. apt-get -y install build-essential
  56. # Coreboot build dependencies (also requires build-essential and git)
  57. # ------------------------------------------------------------
  58. apt-get -y install libncurses5-dev doxygen iasl gdb flex bison build-essential git libssl-dev
  59. # For cross-compiling i686 target on x86_64 host.
  60. [ "${arch}" -eq 0 ] && apt-get -y install lib32ncurses5-dev
  61. # GRUB build dependencies (also requires build-essential, bison and flex)
  62. # ------------------------------------------------------------
  63. 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
  64. # BucTS build dependencies (external script)
  65. # ------------------------------------------------------------
  66. apt-get -y install build-essential
  67. # Flashrom build dependencies (also requires build-essential)
  68. # ------------------------------------------------------------
  69. apt-get -y install libpci-dev pciutils zlib1g-dev libftdi-dev build-essential libusb-1.0-0-dev libusb-1.0
  70. # For cross-compiling i686 target on x86_64 host.
  71. [ "${arch}" -eq 0 ] && apt-get -y install lib32z1-dev