name: dosage-tracker base: core24 adopt-info: dosage-tracker grade: stable confinement: strict platforms: amd64: arm64: armhf: parts: blueprint-compiler: source: https://gitlab.gnome.org/jwestman/blueprint-compiler.git source-tag: "v0.12.0" plugin: meson meson-parameters: - --prefix=/usr override-prime: "" dosage-tracker: after: [blueprint-compiler] plugin: meson # source: snap/local/Dosage source: https://github.com/diegopvlk/Dosage.git source-tag: "v1.6.6" build-environment: - PYTHONPATH: $CRAFT_STAGE/usr/lib/python3/dist-packages:$PYTHONPATH - GI_TYPELIB_PATH: /snap/gnome-46-2404-sdk/current/usr/lib/girepository-1.0:/snap/gnome-46-2404-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/girepository-1.0:/snap/gnome-46-2404-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/gjs/girepository-1.0:$GI_TYPELIB_PATH meson-parameters: - --prefix=/snap/dosage-tracker/current/usr override-pull: | craftctl default sed -i -e 's|@GJS@|/snap/dosage-tracker/current/gnome-platform/usr/bin/gjs|g' src/io.github.diegopvlk.Dosage.in organize: snap/dosage-tracker/current: . parse-info: [usr/share/appdata/io.github.diegopvlk.Dosage.appdata.xml] prime: - -snap/dosage-tracker slots: dosage-tracker: interface: dbus bus: session name: io.github.diegopvlk.Dosage apps: dosage-tracker: command: usr/bin/io.github.diegopvlk.Dosage desktop: usr/share/applications/io.github.diegopvlk.Dosage.desktop autostart: dosage-tracker-startup.desktop common-id: io.github.diegopvlk.Dosage environment: GI_TYPELIB_PATH: $SNAP/gnome-platform/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/gjs/girepository-1.0:$GI_TYPELIB_PATH extensions: - gnome plugs: - audio-playback - login-session-observe