Date: Wednesday, February 14, 2018 @ 20:48:14
  Author: bisson
Revision: 294538

archrelease: copy trunk to community-testing-x86_64

Added:
  googlemaps/repos/community-testing-x86_64/
  googlemaps/repos/community-testing-x86_64/PKGBUILD
    (from rev 294537, googlemaps/trunk/PKGBUILD)
  googlemaps/repos/community-testing-x86_64/qt510.patch
    (from rev 294537, googlemaps/trunk/qt510.patch)

-------------+
 PKGBUILD    |   36 ++++++++++++++++++++++++++++++++++++
 qt510.patch |   21 +++++++++++++++++++++
 2 files changed, 57 insertions(+)

Copied: googlemaps/repos/community-testing-x86_64/PKGBUILD (from rev 294537, 
googlemaps/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD                           (rev 0)
+++ community-testing-x86_64/PKGBUILD   2018-02-14 20:48:14 UTC (rev 294538)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Gaetan Bisson <bis...@archlinux.org>
+
+pkgname=googlemaps
+pkgver=20171202
+_commit=b8d0b353f26df3d8e8d45b8ef325619f9ba84075
+pkgrel=3
+pkgdesc='Google Maps plugin for QtLocation'
+url='https://github.com/vladest/googlemaps'
+license=('MIT')
+arch=('x86_64')
+makedepends=('git' 'qt5-tools')
+depends=('qt5-location')
+source=("git+https://github.com/vladest/googlemaps#commit=${_commit}";
+        'qt510.patch')
+sha256sums=('SKIP'
+            '69285a7073c26175ae46207d728822b3cc9e8b957d60def07e8007d69fade0d4')
+
+prepare() {
+       cd "${srcdir}/${pkgname}"
+       patch -p1 -i ../qt510.patch
+}
+
+build() {
+       cd "${srcdir}/${pkgname}"
+       install -d build
+       cd build
+       qmake ../googlemaps.pro
+       make
+}
+
+package() {
+       cd "${srcdir}/${pkgname}"
+       cd build
+       make INSTALL_ROOT="${pkgdir}" install
+}

Copied: googlemaps/repos/community-testing-x86_64/qt510.patch (from rev 294537, 
googlemaps/trunk/qt510.patch)
===================================================================
--- community-testing-x86_64/qt510.patch                                (rev 0)
+++ community-testing-x86_64/qt510.patch        2018-02-14 20:48:14 UTC (rev 
294538)
@@ -0,0 +1,21 @@
+diff -Naur old/qgeotiledmappingmanagerenginegooglemaps.cpp 
new/qgeotiledmappingmanagerenginegooglemaps.cpp
+--- old/qgeotiledmappingmanagerenginegooglemaps.cpp    2017-12-12 
21:10:20.007206707 -1000
++++ new/qgeotiledmappingmanagerenginegooglemaps.cpp    2017-12-12 
21:10:09.380442993 -1000
+@@ -45,11 +45,16 @@
+     types << QGeoMapType(QGeoMapType::SatelliteMapDay, tr("Satellite"), 
tr("Satellite map view in daylight mode"), false, false, 2);
+     types << QGeoMapType(QGeoMapType::TerrainMap, tr("Terrain"), tr("Terrain 
map view in daylight mode"), false, false, 3);
+     types << QGeoMapType(QGeoMapType::HybridMap, tr("Hybrid"), tr("Satellite 
map view with streets in daylight mode"), false, false, 4);
+-#else
++#elif QT_VERSION < QT_VERSION_CHECK(5,10,0)
+     types << QGeoMapType(QGeoMapType::StreetMap, tr("Road Map"), tr("Normal 
map view in daylight mode"), false, false, 1, "googlemaps");
+     types << QGeoMapType(QGeoMapType::SatelliteMapDay, tr("Satellite"), 
tr("Satellite map view in daylight mode"), false, false, 2, "googlemaps");
+     types << QGeoMapType(QGeoMapType::TerrainMap, tr("Terrain"), tr("Terrain 
map view in daylight mode"), false, false, 3, "googlemaps");
+     types << QGeoMapType(QGeoMapType::HybridMap, tr("Hybrid"), tr("Satellite 
map view with streets in daylight mode"), false, false, 4, "googlemaps");
++#else
++    types << QGeoMapType(QGeoMapType::StreetMap, tr("Road Map"), tr("Normal 
map view in daylight mode"), false, false, 1, "googlemaps", capabilities, 
parameters);
++    types << QGeoMapType(QGeoMapType::SatelliteMapDay, tr("Satellite"), 
tr("Satellite map view in daylight mode"), false, false, 2, "googlemaps", 
capabilities, parameters);
++    types << QGeoMapType(QGeoMapType::TerrainMap, tr("Terrain"), tr("Terrain 
map view in daylight mode"), false, false, 3, "googlemaps", capabilities, 
parameters);
++    types << QGeoMapType(QGeoMapType::HybridMap, tr("Hybrid"), tr("Satellite 
map view with streets in daylight mode"), false, false, 4, "googlemaps", 
capabilities, parameters);
+ #endif
+     setSupportedMapTypes(types);
+ 

Reply via email to