[arch-commits] Commit in gnome-weather/repos/extra-any (3 files)
Jan Steffens
heftig at archlinux.org
Sun Mar 17 02:00:19 UTC 2019
Date: Sunday, March 17, 2019 @ 02:00:18
Author: heftig
Revision: 348537
archrelease: copy trunk to extra-any
Added:
gnome-weather/repos/extra-any/PKGBUILD
(from rev 348536, gnome-weather/trunk/PKGBUILD)
gnome-weather/repos/extra-any/hack-detached.diff
(from rev 348536, gnome-weather/trunk/hack-detached.diff)
Deleted:
gnome-weather/repos/extra-any/PKGBUILD
--------------------+
PKGBUILD | 67 ++++++++++++++++++++++++++++-----------------------
hack-detached.diff | 17 ++++++++++++
2 files changed, 55 insertions(+), 29 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-03-17 02:00:05 UTC (rev 348536)
+++ PKGBUILD 2019-03-17 02:00:18 UTC (rev 348537)
@@ -1,29 +0,0 @@
-# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
-
-pkgname=gnome-weather
-pkgver=3.32.0
-pkgrel=1
-pkgdesc="Access current weather conditions and forecasts"
-url="https://wiki.gnome.org/Apps/Weather"
-arch=(any)
-license=(GPL)
-depends=(gtk3 gjs libgweather geoclue2 gnome-desktop)
-makedepends=(gobject-introspection autoconf-archive appstream-glib git meson)
-groups=(gnome)
-_commit=0ca6ff30ad42246ac62f42d86d978f029266f724 # tags/3.32.0^0
-source=("git+https://gitlab.gnome.org/GNOME/gnome-weather.git#commit=$_commit")
-sha256sums=('SKIP')
-
-pkgver() {
- cd $pkgname
- git describe --tags | sed 's/-/+/g'
-}
-
-build() {
- arch-meson $pkgname build
- ninja -C build
-}
-
-package() {
- DESTDIR="$pkgdir" meson install -C build
-}
Copied: gnome-weather/repos/extra-any/PKGBUILD (from rev 348536, gnome-weather/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-03-17 02:00:18 UTC (rev 348537)
@@ -0,0 +1,38 @@
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+
+pkgname=gnome-weather
+pkgver=3.32.0
+pkgrel=2
+pkgdesc="Access current weather conditions and forecasts"
+url="https://wiki.gnome.org/Apps/Weather"
+arch=(any)
+license=(GPL)
+depends=(gtk3 gjs libgweather geoclue2 gnome-desktop)
+makedepends=(gobject-introspection appstream-glib git meson)
+groups=(gnome)
+_commit=0ca6ff30ad42246ac62f42d86d978f029266f724 # tags/3.32.0^0
+source=("git+https://gitlab.gnome.org/GNOME/gnome-weather.git#commit=$_commit"
+ hack-detached.diff)
+sha256sums=('SKIP'
+ '47bc9707d7e768aed06ce7feafd038c4d95a8c84fee58ec3bc38a35425eb27be')
+
+pkgver() {
+ cd $pkgname
+ git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+ cd $pkgname
+
+ # Hack around broken detached locations
+ patch -Np1 -i ../hack-detached.diff
+}
+
+build() {
+ arch-meson $pkgname build
+ ninja -C build
+}
+
+package() {
+ DESTDIR="$pkgdir" meson install -C build
+}
Copied: gnome-weather/repos/extra-any/hack-detached.diff (from rev 348536, gnome-weather/trunk/hack-detached.diff)
===================================================================
--- hack-detached.diff (rev 0)
+++ hack-detached.diff 2019-03-17 02:00:18 UTC (rev 348537)
@@ -0,0 +1,17 @@
+diff --git i/src/app/currentLocationController.js w/src/app/currentLocationController.js
+index 67538d2..4cad182 100644
+--- i/src/app/currentLocationController.js
++++ w/src/app/currentLocationController.js
+@@ -87,10 +87,8 @@ var CurrentLocationController = class CurrentLocationController {
+ _onLocationUpdated(simple) {
+ let geoclueLocation = simple.get_location();
+
+- this.currentLocation = GWeather.Location.new_detached(geoclueLocation.description,
+- null,
+- geoclueLocation.latitude,
+- geoclueLocation.longitude);
++ this.currentLocation = this._world._world.find_nearest_city(geoclueLocation.latitude,
++ geoclueLocation.longitude);
+ this._world.currentLocationChanged(this.currentLocation);
+ }
+
More information about the arch-commits
mailing list