forked from OSGeo/grass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.debian
68 lines (40 loc) · 1.84 KB
/
README.debian
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# For preparing GRASS Debian package you should download the packaging
# rules from DebianGIS's git repository, then use the Debian build scripts
# to construct the .deb files.
# Make sure git and the debian build scripts are installed:
sudo apt-get install git-core devscripts subversion
# and download the latest svn copy of GRASS:
cd src/grass/
svn checkout https://svn.osgeo.org/grass/grass/trunk g7_trunk
# From the grass source dir download the packaging rules (the contents
# of debiangis/grass/ can be ignored, only the debian/ dir is needed):
git clone git://git.debian.org/git/pkg-grass/grass.git debiangis
ln -s debiangis/grass/debian debian
# If you haven't built GRASS from source on this machine before, you'll
# have to install a bunch of -dev packages. Look at the debian/control
# file and install the packages on the "Build-depends" lines.
sudo apt-get install flex bison libreadline-dev libncurses5-dev # ... etc.
# You can take care of this pretty much automatically with:
sudo apt-get build-dep grass
# In your favorite text editor open debian/changelog and adjust the
# version number on the top line to reflect the GRASS SVN checkout number.
# e.g. for r50539: grass (7.0+svn50539-0) unstable; urgency=low
nano debian/changelog
# After that, you can build the current version of GRASS with
cd g7_trunk
ln -s ../debian .
svn up
debuild -i -uc -us -b
# run from the main GRASS source directory. After the packages are
# generated, you can install them with:
sudo dpkg -i ../grass*.deb
# (make sure to move away older grass*.deb files first)
# to try again, first clean out the old build by running:
# (from the main source dir)
debuild clean
# then repeat the build process
FIXME: how to download just the grass/debian/ directory from git
and not the whole thing?
--
H.Bowman
Last changed: $Date$