Warning, /utilities/qrca/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: qrca
0006 confinement: strict
0007 grade: stable
0008 base: core22
0009 adopt-info: qrca
0010 version: '0.1'
0011 apps:
0012     qrca:
0013         common-id: org.kde.qrca.desktop
0014         desktop: usr/share/applications/org.kde.qrca.desktop
0015         command: usr/bin/qrca
0016         plugs:
0017         - desktop
0018         - desktop-legacy
0019         - opengl
0020         - wayland
0021         - x11
0022         - audio-playback
0023         - unity7
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     QTWEBENGINEPROCESS_PATH: "$SNAP/kf5/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/libexec/QtWebEngineProcess"
0048     QT_PLUGIN_PATH: "$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/plugins:$SNAP/kf5/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/plugins/kf5"
0049 hooks:
0050     configure:
0051         plugs:
0052         - desktop
0053         command-chain:
0054         - snap/command-chain/hooks-configure-desktop
0055 layout:
0056     /usr/share/X11:
0057         symlink: $SNAP/kf5/usr/share/X11
0058     /usr/share/qt5:
0059         bind: $SNAP/kf5/usr/share/qt5
0060 slots:
0061     session-dbus-interface:
0062         interface: dbus
0063         name: org.kde.qrca
0064         bus: session
0065 package-repositories:
0066 -   type: apt
0067     components:
0068     - main
0069     suites:
0070     - jammy
0071     key-id: 444DABCF3667D0283F894EDDE6D4736255751E5D
0072     url: http://origin.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-110-qt-5-15-11-core22
0081         build-snaps:
0082         - kf5-5-110-qt-5-15-11-core22-sdk
0083         build-environment:
0084         - &id001
0085             PATH: /snap/kf5-5-110-qt-5-15-11-core22-sdk/current/usr/bin${PATH:+:$PATH}
0086         - &id002
0087             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}
0088         - &id003
0089             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}
0090         - &id004
0091             CRAFT_CMAKE_ARGS: -DCMAKE_FIND_ROOT_PATH=/snap/kf5-5-110-qt-5-15-11-core22-sdk/current${CRAFT_CMAKE_ARGS:+:$CRAFT_CMAKE_ARGS}
0092     qrca:
0093         after:
0094         - kde-neon
0095         parse-info:
0096         - usr/share/metainfo/org.kde.qrca.appdata.xml
0097         source: .
0098         source-type: local
0099         plugin: cmake
0100         build-packages:
0101         - cmake
0102         - libkf5doctools-dev
0103         - libkf5prison-dev
0104         - libkf5contacts-dev
0105         - libkf5purpose-dev
0106         stage-packages:
0107         - libkf5contacts5
0108         - libkf5prison5
0109         - libkf5prisonscanner5
0110         - qml-module-org-kde-kirigami2
0111         - qml-module-org-kde-prison
0112         - libkf5purpose5
0113         - qml-module-org-kde-purpose
0114         cmake-parameters:
0115         - -DKDE_INSTALL_USE_QT_SYS_PATHS=FALSE
0116         - -DCMAKE_INSTALL_PREFIX=/usr
0117         - -DCMAKE_BUILD_TYPE=Release
0118         - -DENABLE_TESTING=OFF
0119         - -DBUILD_TESTING=OFF
0120         - -DKDE_SKIP_TEST_SETTINGS=ON
0121         - "-DCMAKE_FIND_ROOT_PATH=/usr\\;$CRAFT_STAGE\\;/snap/kf5-5-110-qt-5-15-11-core22-sdk/current"
0122         - "-DKDE_INSTALL_PLUGINDIR=/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/plugins/"
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         - kde-neon
0142         - qrca
0143         plugin: nil
0144         override-prime:  |
0145             set -eux
0146             # # Unused libraries found by linter