README.debian 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # For preparing GRASS Debian package you should download the packaging
  2. # rules from DebianGIS's git repository, then use the Debian build scripts
  3. # to construct the .deb files.
  4. # Make sure git and the debian build scripts are installed:
  5. sudo apt-get install git subversion devscripts
  6. # and download the latest svn copy of GRASS:
  7. cd src/grass/
  8. svn checkout https://svn.osgeo.org/grass/grass/trunk g7_trunk
  9. # From the grass source dir download the packaging rules (the contents
  10. # of debiangis/grass/ can be ignored, only the debian/ dir is needed):
  11. git clone git://git.debian.org/git/pkg-grass/grass.git debiangis
  12. ln -s debiangis/grass/debian debian
  13. # If you haven't built GRASS from source on this machine before, you'll
  14. # have to install a bunch of -dev packages. Look at the debian/control
  15. # file and install the packages on the "Build-depends" lines.
  16. sudo apt-get install flex bison libreadline-dev libncurses5-dev # ... etc.
  17. # You can take care of this pretty much automatically by running
  18. dpkg-checkbuilddeps
  19. # in the main grass source directory, or with:
  20. sudo apt-get build-dep grass
  21. # (for that to work, make sure the 'deb-src' lines are active in
  22. # your /etc/apt/sources.list file)
  23. # Once all of the build dependencies are installed, in your favorite text
  24. # editor open debian/changelog and adjust the version number on the top
  25. # line to reflect the GRASS SVN checkout number.
  26. # e.g. for r50539: grass (7.0+svn50539-0) unstable; urgency=low
  27. nano debian/changelog
  28. # After that, you can build the current version of GRASS with
  29. cd g7_trunk
  30. ln -s ../debian .
  31. svn up
  32. debuild -i -uc -us -b
  33. #TODO: does 'debuild -i -uc -us -b -j4' work for parallel build??
  34. # it works for debuild'ing qgis; need to test with grass
  35. # run from the main GRASS source directory. After the packages are
  36. # generated, you can install them with:
  37. sudo dpkg -i ../grass*.deb
  38. # (make sure to move away older grass*.deb files first)
  39. # to try again, first clean out the old build by running:
  40. # (from the main source dir)
  41. debuild clean
  42. # then repeat the build process
  43. FIXME: how to download just the grass/debian/ directory from git
  44. and not the whole thing?
  45. --
  46. H.Bowman
  47. Last changed: $Date$