[arch-commits] Commit in gnome-calendar/trunk (PKGBUILD reduce-location-accuracy.diff)

Jan Steffens heftig at gemini.archlinux.org
Thu Feb 10 18:24:12 UTC 2022


    Date: Thursday, February 10, 2022 @ 18:24:12
  Author: heftig
Revision: 436883

41.2+r5+g2222a4ee-1

Added:
  gnome-calendar/trunk/reduce-location-accuracy.diff
Modified:
  gnome-calendar/trunk/PKGBUILD

-------------------------------+
 PKGBUILD                      |   16 ++++++++++++----
 reduce-location-accuracy.diff |   13 +++++++++++++
 2 files changed, 25 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-02-10 18:22:48 UTC (rev 436882)
+++ PKGBUILD	2022-02-10 18:24:12 UTC (rev 436883)
@@ -2,7 +2,7 @@
 # Contributor: Jan de Groot <jgc at archlinux.org>
 
 pkgname=gnome-calendar
-pkgver=41.2
+pkgver=41.2+r5+g2222a4ee
 pkgrel=1
 pkgdesc="Simple and beautiful calendar application designed to perfectly fit the GNOME desktop"
 url="https://wiki.gnome.org/Apps/Calendar"
@@ -12,9 +12,11 @@
          libdazzle libhandy)
 makedepends=(git meson)
 groups=(gnome)
-_commit=deb9ff18302457b91fb8013f98880c8e3a548c19  # tags/41.2^0
-source=("git+https://gitlab.gnome.org/GNOME/gnome-calendar.git#commit=$_commit")
-sha256sums=('SKIP')
+_commit=2222a4ee55fc8f42bdc0f833e1a37a94f7ddc2bf  # gnome-41
+source=("git+https://gitlab.gnome.org/GNOME/gnome-calendar.git#commit=$_commit"
+        reduce-location-accuracy.diff)
+sha256sums=('SKIP'
+            '190f627d7a518f9104d54a4a15f3d6c8b14a08472ef3b28e63d15328d7e106e1')
 
 pkgver() {
   cd $pkgname
@@ -23,6 +25,12 @@
 
 prepare() {
   cd $pkgname
+
+  # Fix build with Meson 0.61
+  git cherry-pick -n e35dbc1acd03dd1751b755b6c8e1932a692ad4e1
+
+  # Reduce accuracy of location requests
+  git apply -3 ../reduce-location-accuracy.diff
 }
 
 build() {

Added: reduce-location-accuracy.diff
===================================================================
--- reduce-location-accuracy.diff	                        (rev 0)
+++ reduce-location-accuracy.diff	2022-02-10 18:24:12 UTC (rev 436883)
@@ -0,0 +1,13 @@
+diff --git i/src/weather/gcal-weather-service.c w/src/weather/gcal-weather-service.c
+index 9fbedb51..57f88160 100644
+--- i/src/weather/gcal-weather-service.c
++++ w/src/weather/gcal-weather-service.c
+@@ -1118,7 +1118,7 @@ gcal_weather_service_run (GcalWeatherService *self,
+       g_cancellable_reset (self->location_cancellable);
+ 
+       gclue_simple_new (APPLICATION_ID,
+-                        GCLUE_ACCURACY_LEVEL_EXACT,
++                        GCLUE_ACCURACY_LEVEL_CITY,
+                         self->location_cancellable,
+                         (GAsyncReadyCallback) on_gclue_simple_creation_cb,
+                         self);



More information about the arch-commits mailing list