Warning, /utilities/kweather/snapcraft.yaml is written in an unsupported language. File is not indexed.
0001 ---
0002 name: kweather
0003 confinement: strict
0004 grade: stable
0005 base: core22
0006 adopt-info: kweather
0007 apps:
0008 kweather:
0009 # extensions:
0010 # - kde-neon
0011 common-id: org.kde.kweather.desktop
0012 desktop: usr/share/applications/org.kde.kweather.desktop
0013 command: usr/bin/kweather
0014 plugs:
0015 - desktop
0016 - desktop-legacy
0017 - opengl
0018 - wayland
0019 - x11
0020 - audio-playback
0021 - unity7
0022 - network
0023 - network-bind
0024 command-chain:
0025 - snap/command-chain/desktop-launch
0026 assumes:
0027 - snapd2.58.3
0028 compression: lzo
0029 plugs:
0030 desktop:
0031 mount-host-font-cache: false
0032 icon-themes:
0033 interface: content
0034 target: $SNAP/data-dir/icons
0035 default-provider: gtk-common-themes
0036 sound-themes:
0037 interface: content
0038 target: $SNAP/data-dir/sounds
0039 default-provider: gtk-common-themes
0040 kf5-5-110-qt-5-15-11-core22:
0041 content: kf5-5-110-qt-5-15-11-core22-all
0042 interface: content
0043 default-provider: kf5-5-110-qt-5-15-11-core22
0044 target: $SNAP/kf5
0045 environment:
0046 SNAP_DESKTOP_RUNTIME: $SNAP/kf5
0047 GST_PLUGIN_PATH: "$SNAP/kf5/usr/lib/$CRAFT_ARCH_TRIPLET/gstreamer-1.0"
0048 GST_PLUGIN_SYSTEM_PATH: "$SNAP/kf5/usr/lib/$CRAFT_ARCH_TRIPLET/gstreamer-1.0"
0049 GST_PLUGIN_SCANNER: "$SNAP/kf5/usr/lib/$CRAFT_ARCH_TRIPLET/gstreamer1.0/gstreamer-1.0/gst-plugin-scanner"
0050 QML2_IMPORT_PATH: "$QML2_IMPORT_PATH:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/qml:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/qml:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/qml/org/kde/kirigami.2:$SNAP/kf5/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/qml"
0051 hooks:
0052 configure:
0053 plugs:
0054 - desktop
0055 command-chain:
0056 - snap/command-chain/hooks-configure-desktop
0057 layout:
0058 /usr/share/X11:
0059 symlink: $SNAP/kf5/usr/share/X11
0060 "/usr/lib/$CRAFT_ARCH_TRIPLET/alsa-lib":
0061 bind: "$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/alsa-lib"
0062 "/usr/share/alsa":
0063 bind: "$SNAP/usr/share/alsa"
0064 /usr/lib/qt5/bin:
0065 symlink: $SNAP/kf5/usr/lib/qt5/bin
0066 slots:
0067 session-dbus-interface:
0068 interface: dbus
0069 name: org.kde.kweather
0070 bus: session
0071 package-repositories:
0072 - type: apt
0073 components:
0074 - main
0075 suites:
0076 - jammy
0077 key-id: 444DABCF3667D0283F894EDDE6D4736255751E5D
0078 url: https://origin.archive.neon.kde.org/user
0079 key-server: keyserver.ubuntu.com
0080 parts:
0081 kde-neon:
0082 source: /snap/snapcraft/current/share/snapcraft/extensions/desktop/kde-neon
0083 source-type: local
0084 plugin: make
0085 make-parameters:
0086 - PLATFORM_PLUG=kf5-5-110-qt-5-15-11-core22
0087 build-snaps:
0088 - kf5-5-110-qt-5-15-11-core22-sdk
0089 build-environment:
0090 - &id001
0091 PATH: /snap/kf5-5-110-qt-5-15-11-core22-sdk/current/usr/bin${PATH:+:$PATH}
0092 - &id002
0093 XDG_DATA_DIRS: $CRAFT_STAGE/usr/share:/snap/kf5-5-110-qt-5-15-11-core22-sdk/current/usr/share:/usr/share${XDG_DATA_DIRS:+:$XDG_DATA_DIRS}
0094 - &id003
0095 XDG_CONFIG_HOME: $CRAFT_STAGE/etc/xdg:/snap/kf5-5-110-qt-5-15-11-core22-sdk/current/etc/xdg:/etc/xdg${XDG_CONFIG_HOME:+:$XDG_CONFIG_HOME}
0096 - &id004
0097 CRAFT_CMAKE_ARGS: -DCMAKE_FIND_ROOT_PATH=/snap/kf5-5-110-qt-5-15-11-core22-sdk/current${CRAFT_CMAKE_ARGS:+:$CRAFT_CMAKE_ARGS}
0098 kweathercore:
0099 after:
0100 - kde-neon
0101 plugin: cmake
0102 build-packages:
0103 - libkf5holidays-dev
0104 source: https://invent.kde.org/libraries/kweathercore.git
0105 source-tag: v0.7
0106 cmake-parameters:
0107 - "-DCMAKE_INSTALL_PREFIX=/usr"
0108 - "-DCMAKE_BUILD_TYPE=Release"
0109 - "-DENABLE_TESTING=OFF"
0110 - "-DBUILD_TESTING=OFF"
0111 - "-DKDE_SKIP_TEST_SETTINGS=ON"
0112 - "-DCMAKE_PREFIX_PATH=$CRAFT_STAGE\\;/snap/kf5-5-110-qt-5-15-11-core22-sdk/current"
0113 - "-DCMAKE_FIND_ROOT_PATH=/usr\\;$CRAFT_STAGE\\;/snap/kf5-5-110-qt-5-15-11-core22-sdk/current"
0114 - "-DKDE_INSTALL_PLUGINDIR=/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/plugins/"
0115 prime:
0116 - "-usr/lib/*/cmake/*"
0117 - "-usr/include/*"
0118 - "-usr/share/ECM/*"
0119 - "-usr/share/doc/*"
0120 - "-usr/share/man/*"
0121 - "-usr/share/icons/breeze-dark*"
0122 - "-usr/bin/X11"
0123 - "-usr/lib/gcc/$CRAFT_ARCH_TRIPLET/6.0.0"
0124 - "-usr/lib/aspell/*"
0125 - "-usr/share/lintain"
0126 build-environment: &id005
0127 - *id001
0128 - *id002
0129 - *id003
0130 - *id004
0131 kweather:
0132 after:
0133 - kde-neon
0134 - kweathercore
0135 parse-info:
0136 - usr/share/metainfo/org.kde.kweather.appdata.xml
0137 plugin: cmake
0138 build-packages:
0139 - libkf5doctools-dev
0140 - reuse
0141 - libqt5charts5-dev
0142 - kirigami2-dev
0143 - kirigami-addons-dev
0144 - qml-module-org-kde-kirigami2
0145 - kirigami-addons-data
0146 - qml-module-org-kde-kirigami-addons-datetime
0147 - qml-module-org-kde-kirigami-addons-labs-components
0148 - qml-module-org-kde-kirigami-addons-labs-mobileform
0149 - qml-module-org-kde-kirigami-addons-sounds
0150 - qml-module-org-kde-kirigami-addons-treeview
0151 - qtdeclarative5-dev
0152 - qml-module-org-kde-kholidays
0153 stage-packages:
0154 - libasound2
0155 - libasound2-data
0156 - libasound2-plugins
0157 - phonon4qt5
0158 - gstreamer1.0-alsa
0159 - gstreamer1.0-pulseaudio
0160 - gstreamer1.0-plugins-good
0161 - gstreamer1.0-plugins-bad
0162 - gstreamer1.0-plugins-ugly
0163 - phonon4qt5-backend-gstreamer
0164 - oxygen-sounds
0165 - libqt5charts5
0166 - libkf5kirigami2-5
0167 - qml-module-org-kde-kirigami2
0168 - kirigami-addons-data
0169 - qml-module-org-kde-kirigami-addons-datetime
0170 - qml-module-org-kde-kirigami-addons-labs-components
0171 - qml-module-org-kde-kirigami-addons-labs-mobileform
0172 - qml-module-org-kde-kirigami-addons-sounds
0173 - qml-module-org-kde-kirigami-addons-treeview
0174 - libkf5holidays5
0175 - qml-module-org-kde-kholidays
0176 - qml-module-qtcharts
0177 source: .
0178 source-type: local
0179 cmake-parameters:
0180 - "-DCMAKE_INSTALL_PREFIX=/usr"
0181 - "-DCMAKE_BUILD_TYPE=Release"
0182 - "-DENABLE_TESTING=OFF"
0183 - "-DBUILD_TESTING=OFF"
0184 - "-DKDE_SKIP_TEST_SETTINGS=ON"
0185 - "-DCMAKE_FIND_ROOT_PATH=/usr\\;$CRAFT_STAGE\\;/snap/kf5-5-110-qt-5-15-11-core22-sdk/current"
0186 - "-DKDE_INSTALL_PLUGINDIR=/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/plugins/"
0187 prime:
0188 - "-usr/lib/*/cmake/*"
0189 - "-usr/include/*"
0190 - "-usr/share/ECM/*"
0191 - "-usr/share/doc/*"
0192 - "-usr/share/man/*"
0193 - "-usr/share/icons/breeze-dark*"
0194 - "-usr/bin/X11"
0195 - "-usr/lib/gcc/$CRAFT_ARCH_TRIPLET/6.0.0"
0196 - "-usr/lib/aspell/*"
0197 - "-usr/share/lintian"
0198 build-environment:
0199 - *id001
0200 - *id002
0201 - *id003
0202 - *id004
0203 - QML2_IMPORT_PATH: "$CRAFT_STAGE/usr/lib/$CRAFT_ARCH_TRIPLET/qml:$CRAFT_STAGE/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/qml:$CRAFT_STAGE/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/qml/org/kde/kirigami.2:/snap/kf5-5-105-qt-5-15-9-core22-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/qml"
0204 override-build: |
0205 craftctl default
0206
0207 sed -i "${CRAFT_PART_INSTALL}/usr/share/applications/org.kde.kweather.desktop" -e 's|Icon=org.kde.kweather$|Icon=${SNAP}/usr/share/icons/hicolor/scalable/apps/org.kde.kweather.svg|'
0208 cleanup:
0209 after:
0210 - kde-neon
0211 - kweather
0212 plugin: nil
0213 override-prime: |
0214 set -eux
0215 # # Unused libraries found by linter
0216