Warning, /utilities/kclock/snapcraft.yaml is written in an unsupported language. File is not indexed.

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