Warning, /utilities/kalk/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: kalk
0007 confinement: strict
0008 grade: stable
0009 base: core22
0010 adopt-info: kalk
0011 apps:
0012     kalk:
0013         # extensions:
0014         # - kde-neon
0015         common-id: org.kde.kalk.desktop
0016         desktop: usr/share/applications/org.kde.kalk.desktop
0017         command: usr/bin/kalk
0018         plugs:
0019         - desktop
0020         - desktop-legacy
0021         - opengl
0022         - wayland
0023         - x11
0024         - audio-playback
0025         - unity7
0026         - network
0027         - network-bind
0028         command-chain:
0029         - snap/command-chain/desktop-launch
0030 assumes:
0031 - snapd2.58.3
0032 compression: lzo
0033 plugs:
0034     desktop:
0035         mount-host-font-cache: false
0036     icon-themes:
0037         interface: content
0038         target: $SNAP/data-dir/icons
0039         default-provider: gtk-common-themes
0040     sound-themes:
0041         interface: content
0042         target: $SNAP/data-dir/sounds
0043         default-provider: gtk-common-themes
0044     kf5-5-111-qt-5-15-11-core22:
0045         content: kf5-5-111-qt-5-15-11-core22-all
0046         interface: content
0047         default-provider: kf5-5-111-qt-5-15-11-core22
0048         target: $SNAP/kf5
0049 environment:
0050     SNAP_DESKTOP_RUNTIME: $SNAP/kf5
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 slots:
0061     session-dbus-interface:
0062         interface: dbus
0063         name: org.kde.kalk
0064         bus: session
0065 package-repositories:
0066 -   type: apt
0067     components:
0068     - main
0069     suites:
0070     - jammy
0071     key-id: 444DABCF3667D0283F894EDDE6D4736255751E5D
0072     url: http://archive.neon.kde.org/user
0073     key-server: keyserver.ubuntu.com
0074 parts:
0075     kde-neon:
0076         source: /snap/snapcraft/current/share/snapcraft/extensions/desktop/kde-neon
0077         source-type: local
0078         plugin: make
0079         make-parameters:
0080         - PLATFORM_PLUG=kf5-5-111-qt-5-15-11-core22
0081         build-snaps:
0082         - kf5-5-111-qt-5-15-11-core22-sdk
0083         build-environment:
0084         - &id001
0085             PATH: /snap/kf5-5-111-qt-5-15-11-core22-sdk/current/usr/bin${PATH:+:$PATH}
0086         - &id002
0087             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}
0088         - &id003
0089             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}
0090         - &id004
0091             CRAFT_CMAKE_ARGS: -DCMAKE_FIND_ROOT_PATH=/snap/kf5-5-111-qt-5-15-11-core22-sdk/current${CRAFT_CMAKE_ARGS:+:$CRAFT_CMAKE_ARGS}
0092     kalk:
0093         after:
0094         - kde-neon
0095         parse-info:
0096         - usr/share/metainfo/org.kde.kalk.appdata.xml
0097         plugin: cmake
0098         build-packages:
0099         - libmpfr-dev
0100         - libgmp-dev
0101         - bison
0102         - flex
0103         - kirigami2-dev
0104         - libkf5doctools-dev
0105         stage-packages:
0106         - qml-module-org-kde-kirigami2
0107         - qml-module-qtfeedback
0108         - qml-module-qtquick-controls2
0109         - libgmp10
0110         - libmpfr6
0111         source: .
0112         source-type: local
0113         cmake-parameters:
0114         - "-DKDE_INSTALL_USE_QT_SYS_PATHS=FALSE"
0115         - "-DCMAKE_INSTALL_PREFIX=/usr"
0116         - "-DCMAKE_BUILD_TYPE=Release"
0117         - "-DENABLE_TESTING=OFF"
0118         - "-DBUILD_TESTING=OFF"
0119         - "-DKDE_SKIP_TEST_SETTINGS=ON"
0120         - "-DCMAKE_FIND_ROOT_PATH=/usr\\;$CRAFT_STAGE\\;/snap/kf5-5-111-qt-5-15-11-core22-sdk/current"
0121         - "-DKDE_INSTALL_PLUGINDIR=/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/plugins/"
0122         - "-DKDE_INSTALL_FULL_APPDIR=$SNAP/usr/share/applications"
0123         prime:
0124         - "-usr/lib/*/cmake/*"
0125         - "-usr/include/*"
0126         - "-usr/share/ECM/*"
0127         - "-usr/share/doc/*"
0128         - "-usr/share/man/*"
0129         - "-usr/share/icons/breeze-dark*"
0130         - "-usr/bin/X11"
0131         - "-usr/lib/gcc/$CRAFT_ARCH_TRIPLET/6.0.0"
0132         - "-usr/lib/aspell/*"
0133         - "-usr/share/lintian"
0134         build-environment: &id005
0135         - *id001
0136         - *id002
0137         - *id003
0138         - *id004
0139     cleanup:
0140         after:
0141         - kalk
0142         plugin: nil
0143         override-prime: |
0144             set -eux
0145             #unused libs found in linters