name: gnome-weather adopt-info: gnome-weather grade: stable confinement: strict base: core24 layout: /usr/bin/gjs: symlink: $SNAP/gnome-platform/usr/bin/gjs slots: # for GtkApplication registration gnome-weather: interface: dbus bus: session name: org.gnome.Weather plugs: desktop: desktop-file-ids: - org.gnome.Weather apps: gnome-weather: command: usr/share/org.gnome.Weather/org.gnome.Weather extensions: [gnome] plugs: - network - network-status environment: LD_LIBRARY_PATH: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/org.gnome.Weather:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR:$SNAP/usr/lib:$SNAP/gnome-platform/usr/lib:$SNAP/gnome-platform/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR GI_TYPELIB_PATH: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/org.gnome.Weather/girepository-1.0:$SNAP/gnome-platform/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/gjs/girepository-1.0:$SNAP/gnome-platform/usr/lib/girepository-1.0:$SNAP/gnome-platform/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/girepository-1.0 parts: gnome-weather: after: [geoclue] source: https://gitlab.gnome.org/GNOME/gnome-weather.git source-type: git source-tag: '48.0' source-depth: 1 plugin: meson meson-parameters: - --buildtype=release - --prefix=/snap/gnome-weather/current/usr build-packages: - meson - ninja-build parse-info: [usr/share/metainfo/org.gnome.Weather.appdata.xml] organize: snap/gnome-weather/current/usr: usr override-pull: | craftctl default craftctl set version=$(git describe --tags --abbrev=10) sed -i -e 's|@GJS@|/usr/bin/gjs|g' src/org.gnome.Weather.in sed -i -e 's|@GJS@|/usr/bin/gjs|g' src/org.gnome.Weather.BackgroundService.in sed -i.bak -e 's|Icon=@APP_ID@$|Icon=snap.gnome-weather.icon|g' data/org.gnome.Weather.desktop.in.in sed -i.bak -e 's|Exec=gapplication launch @APP_ID@$|Exec=gnome-weather|g' data/org.gnome.Weather.desktop.in.in # Invalid metadata sed -i -e 's|