[arch-commits] Commit in googlemaps/repos (3 files)
Antonio Rojas
arojas at archlinux.org
Tue May 22 12:20:58 UTC 2018
Date: Tuesday, May 22, 2018 @ 12:20:57
Author: arojas
Revision: 327568
archrelease: copy trunk to community-staging-x86_64
Added:
googlemaps/repos/community-staging-x86_64/
googlemaps/repos/community-staging-x86_64/PKGBUILD
(from rev 327567, googlemaps/trunk/PKGBUILD)
googlemaps/repos/community-staging-x86_64/qt510.patch
(from rev 327567, googlemaps/trunk/qt510.patch)
-------------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
qt510.patch | 21 +++++++++++++++++++++
2 files changed, 57 insertions(+)
Copied: googlemaps/repos/community-staging-x86_64/PKGBUILD (from rev 327567, googlemaps/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-05-22 12:20:57 UTC (rev 327568)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Gaetan Bisson <bisson at archlinux.org>
+
+pkgname=googlemaps
+pkgver=20171202
+_commit=b8d0b353f26df3d8e8d45b8ef325619f9ba84075
+pkgrel=4
+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-staging-x86_64/qt510.patch (from rev 327567, googlemaps/trunk/qt510.patch)
===================================================================
--- community-staging-x86_64/qt510.patch (rev 0)
+++ community-staging-x86_64/qt510.patch 2018-05-22 12:20:57 UTC (rev 327568)
@@ -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);
+
More information about the arch-commits
mailing list