From ca37301cb57677fafaa856ae2fba91276fba9753 Mon Sep 17 00:00:00 2001
From: "Lubomir I. Ivanov" <neolit123@gmail.com>
Date: Wed, 2 Aug 2017 22:59:02 +0300
Subject: build.sh: build the google maps geoservices plugin

The source code is pulled from the forked repository at:
git@github.com:Subsurface-divelog/googlemaps.git

It's rebased if needed, build using 'make -j4' and then
installed.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
---
 scripts/build.sh | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

(limited to 'scripts')

diff --git a/scripts/build.sh b/scripts/build.sh
index 945673bf8..a5c1f0fff 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -429,7 +429,22 @@ else
 fi
 
 
+# build the googlemaps map plugin
 
+cd $SRC
+if [ ! -d googlemaps ] ; then
+	if [[ $1 = local ]] ; then
+		git clone $SRC/../googlemaps googlemaps
+	else
+		git clone git@github.com:Subsurface-divelog/googlemaps.git
+	fi
+fi
+cd googlemaps
+git checkout master
+git pull --rebase
+qmake
+make -j4
+make install
 
 # finally, build Subsurface
 
-- 
cgit v1.2.3-70-g09d2