Debian Codegraph @

binder/postBuild

raw
1 #!/bin/bash
2
3 # exit on error
4 set -e
5
6 # compile
7 ./configure \
8 --with-bzlib \
9 --with-cairo \
10 --with-cxx \
11 --with-freetype=yes --with-freetype-includes="/usr/include/freetype2/" \
12 --with-geos=/usr/bin/geos-config \
13 --with-nls \
14 --with-opengl-libs=/usr/include/GL \
15 --with-proj-share=/usr/share/proj \
16 --with-readline \
17 --without-pdal \
18 --with-sqlite=yes
19 make
20
21 # put command on path
22 # ensure the user specific bin dir exists (already on path)
23 mkdir -p $HOME/.local/bin/
24 # create link to build
25 ln -s $HOME/bin.*/grass* $HOME/.local/bin/grass
26
27 # download a sample dataset
28 mkdir -p data \
29 && curl -SL https://grass.osgeo.org/sampledata/north_carolina/nc_basic_spm_grass7.zip > nc_basic_spm_grass7.zip \
30 && unzip -qq nc_basic_spm_grass7.zip \
31 && mv nc_basic_spm_grass7 data \
32 && rm nc_basic_spm_grass7.zip