builddeb 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. #!/bin/bash
  2. # builddeb script: Installs build dependencies from apt-get (tested in Trisquel 6)
  3. #
  4. # Copyright (C) 2014 Francis Rowe
  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. # Install build dependencies
  20. # For trisquel. This might also work on other apt-get distributions.
  21. # Duplications are intentional. Please do not re-factor.
  22. #
  23. # This is so that individual scripts can be installed for specific applications.
  24. # This is, alternatively, so that I can more easily move each part to a separate script.
  25. #
  26. # Really. Most distros come with this anyway
  27. # Parabola does not! If you are using parabola, use "pacman -S wget"
  28. # ------------------------------------------------------------
  29. sudo apt-get -y install wget
  30. # For downloading source code
  31. # ------------------------------------------------------------
  32. sudo apt-get -y install subversion git
  33. # For building source code:
  34. # ------------------------------------------------------------
  35. sudo apt-get -y install build-essential
  36. # Memtest86+ build dependencies
  37. # ------------------------------------------------------------
  38. sudo apt-get -y install build-essential
  39. # Coreboot build dependencies (also requires build-essential and git)
  40. # ------------------------------------------------------------
  41. sudo apt-get -y install libncurses5-dev doxygen iasl gdb flex bison build-essential git
  42. # GRUB build dependencies (also requires build-essential, bison and flex)
  43. # ------------------------------------------------------------
  44. sudo 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
  45. #
  46. # The following have had their dependency lists moved to external scripts:
  47. #
  48. # This is so that users in libreboot_bin can more easily install the dependencies
  49. # for these, without having to install all of the dependencies for the entire source code
  50. #
  51. # BucTS build dependencies (external script)
  52. # ------------------------------------------------------------
  53. sudo ./builddeb-bucts
  54. # Flashrom build dependencies (also requires build-essential and subversion)
  55. # ------------------------------------------------------------
  56. sudo ./builddeb-flashrom
  57. # ------------------- DONE ----------------------