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

0001 # SPDX-FileCopyrightText: 2023 Scarlett Moore <sgmoore@kde.org>
0002 #
0003 # SPDX-License-Identifier: CC0-1.0
0004 ---
0005 name: kbackup
0006 confinement: strict
0007 grade: stable
0008 base: core22
0009 adopt-info: kbackup
0010 apps:
0011     kbackup:
0012         # extensions:
0013         # - kde-neon
0014         common-id: org.kde.kbackup.desktop
0015         desktop: usr/share/applications/org.kde.kbackup.desktop
0016         command: usr/bin/kbackup
0017         plugs:
0018         - home
0019         - desktop
0020         - desktop-legacy
0021         - opengl
0022         - wayland
0023         - x11
0024         - audio-playback
0025         - unity7
0026         - network
0027         - network-bind
0028         - system-backup
0029         - removable-media
0030         command-chain:
0031         - snap/command-chain/desktop-launch
0032 assumes:
0033 - snapd2.55.3
0034 compression: lzo
0035 plugs:
0036     desktop:
0037         mount-host-font-cache: false
0038     icon-themes:
0039         interface: content
0040         target: $SNAP/data-dir/icons
0041         default-provider: gtk-common-themes
0042     sound-themes:
0043         interface: content
0044         target: $SNAP/data-dir/sounds
0045         default-provider: gtk-common-themes
0046     kf5-5-111-qt-5-15-11-core22:
0047         content: kf5-5-111-qt-5-15-11-core22-all
0048         interface: content
0049         default-provider: kf5-5-111-qt-5-15-11-core22
0050         target: $SNAP/kf5
0051 environment:
0052     SNAP_DESKTOP_RUNTIME: $SNAP/kf5
0053 hooks:
0054     configure:
0055         plugs:
0056         - desktop
0057         command-chain:
0058         - snap/command-chain/hooks-configure-desktop
0059 layout:
0060     /usr/share/X11:
0061         symlink: $SNAP/kf5/usr/share/X11
0062 slots:
0063     session-dbus-interface:
0064         interface: dbus
0065         name: org.kde.kbackup
0066         bus: session
0067 package-repositories:
0068 -   type: apt
0069     components:
0070     - main
0071     suites:
0072     - jammy
0073     key-id: 444DABCF3667D0283F894EDDE6D4736255751E5D
0074     url: http://origin.archive.neon.kde.org/user
0075     key-server: keyserver.ubuntu.com
0076 parts:
0077     kde-neon:
0078         source: /snap/snapcraft/current/share/snapcraft/extensions/desktop/kde-neon
0079         source-type: local
0080         plugin: make
0081         make-parameters:
0082         - PLATFORM_PLUG=kf5-5-111-qt-5-15-11-core22
0083         build-snaps:
0084         - kf5-5-111-qt-5-15-11-core22-sdk
0085         build-environment:
0086         - &id001
0087             PATH: /snap/kf5-5-111-qt-5-15-11-core22-sdk/current/usr/bin${PATH:+:$PATH}
0088         - &id002
0089             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}
0090         - &id003
0091             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}
0092         - &id004
0093             CRAFT_CMAKE_ARGS: -DCMAKE_FIND_ROOT_PATH=/snap/kf5-5-111-qt-5-15-11-core22-sdk/current${CRAFT_CMAKE_ARGS:+:$CRAFT_CMAKE_ARGS}
0094     kbackup:
0095         after:
0096         - kde-neon
0097         parse-info:
0098         - usr/share/metainfo/org.kde.kbackup.appdata.xml
0099         plugin: cmake
0100         build-packages:
0101         - libkf5doctools-dev
0102         - libarchive-dev
0103         stage-packages:
0104         - libarchive13
0105         stage-snaps:
0106         - khelpcenter
0107         source: .
0108         source-type: local
0109         cmake-parameters:
0110         - -DKDE_INSTALL_USE_QT_SYS_PATHS=FALSE
0111         - "-DCMAKE_INSTALL_PREFIX=/usr"
0112         - "-DCMAKE_BUILD_TYPE=Release"
0113         - "-DENABLE_TESTING=OFF"
0114         - "-DBUILD_TESTING=OFF"
0115         - "-DKDE_SKIP_TEST_SETTINGS=ON"
0116         - -DCMAKE_FIND_ROOT_PATH=$CRAFT_STAGE:/snap/kf5-5-111-qt-5-15-11-core22-sdk/current
0117         build-environment: &id005
0118         - *id001
0119         - *id002
0120         - *id003
0121         - *id004
0122         prime:
0123         - "-usr/lib/*/cmake/*"
0124         - "-usr/include/*"
0125         - "-usr/share/ECM/*"
0126         - "-usr/share/man/*"
0127         - "-usr/share/icons/breeze-dark*"
0128         - "-usr/bin/X11"
0129         - "-usr/lib/gcc/$CRAFT_ARCH_TRIPLET/6.0.0"
0130         - "-usr/lib/aspell/*"
0131         - "-etc/alsa/conf.d/99-pulse.conf"
0132     cleanup:
0133         after:
0134         - kbackup
0135         plugin: nil
0136         override-prime: |
0137             set -eux
0138             #unused libs found by linters