Warning, /network/tokodon/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: tokodon
0006 confinement: strict
0007 grade: stable
0008 base: core22
0009 adopt-info: tokodon
0010 apps:
0011     tokodon:
0012         # extensions:
0013         # - kde-neon
0014         common-id: org.kde.tokodon
0015         desktop: usr/share/applications/org.kde.tokodon.desktop
0016         command: usr/bin/tokodon
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         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     GST_PLUGIN_PATH: "$SNAP/kf5/usr/lib/$CRAFT_ARCH_TRIPLET/gstreamer-1.0"
0052     GST_PLUGIN_SYSTEM_PATH: "$SNAP/kf5/usr/lib/$CRAFT_ARCH_TRIPLET/gstreamer-1.0"
0053     GST_PLUGIN_SCANNER: "$SNAP/kf5/usr/lib/$CRAFT_ARCH_TRIPLET/gstreamer1.0/gstreamer-1.0/gst-plugin-scanner"
0054     QML2_IMPORT_PATH: "$QML2_IMPORT_PATH:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/qml:/$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/qml:$SNAP/kf5/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/qml"
0055     LD_LIBRARY_PATH: $SNAP/lib:$SNAP/usr/lib:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET:/snap/ffmpeg-2204/current/usr/lib:$SNAP/kf5/lib/$CRAFT_ARCH_TRIPLET:$SNAP/kf5/usr/lib/$CRAFT_ARCH_TRIPLET:$SNAP/kf5/usr/lib:$SNAP/kf5/usr/lib/vala-current:$SNAP/kf5/usr/lib/$CRAFT_ARCH_TRIPLET/pulseaudio:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/blas:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/lapack
0056 hooks:
0057     configure:
0058         plugs:
0059         - desktop
0060         command-chain:
0061         - snap/command-chain/hooks-configure-desktop
0062 layout:
0063     /usr/share/X11:
0064         symlink: $SNAP/kf5/usr/share/X11
0065     "/usr/lib/$CRAFT_ARCH_TRIPLET/alsa-lib":
0066         bind: "$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/alsa-lib"
0067     "/usr/share/alsa":
0068         bind: "$SNAP/usr/share/alsa"
0069 slots:
0070     session-dbus-interface:
0071         interface: dbus
0072         name: org.kde.tokodon
0073         bus: session
0074 package-repositories:
0075 -   type: apt
0076     components:
0077     - main
0078     suites:
0079     - jammy
0080     key-id: 444DABCF3667D0283F894EDDE6D4736255751E5D
0081     url: https://origin.archive.neon.kde.org/user
0082     key-server: keyserver.ubuntu.com
0083 parts:
0084     kde-neon:
0085         source: /snap/snapcraft/current/share/snapcraft/extensions/desktop/kde-neon
0086         source-type: local
0087         plugin: make
0088         make-parameters:
0089         - PLATFORM_PLUG=kf5-5-111-qt-5-15-11-core22
0090         build-snaps:
0091         - kf5-5-111-qt-5-15-11-core22-sdk
0092         build-environment:
0093         - &id001
0094             PATH: /snap/kf5-5-111-qt-5-15-11-core22-sdk/current/usr/bin${PATH:+:$PATH}
0095         - &id002
0096             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}
0097         - &id003
0098             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}
0099         - &id004
0100             CRAFT_CMAKE_ARGS: -DCMAKE_FIND_ROOT_PATH=/snap/kf5-5-111-qt-5-15-11-core22-sdk/current${CRAFT_CMAKE_ARGS:+:$CRAFT_CMAKE_ARGS}
0101     tokodon:
0102         after:
0103         - kde-neon
0104         parse-info:
0105         - usr/share/metainfo/org.kde.tokodon.appdata.xml
0106         plugin: cmake
0107         build-packages:
0108         - libkf5doctools-dev
0109         - kirigami-addons-dev
0110         - libkf5qqc2desktopstyle-dev
0111         - libmpv-dev
0112         - qml-module-org-kde-kitemmodels
0113         - qml-module-org-kde-sonnet
0114         - qtkeychain-qt5-dev
0115         stage-packages:
0116         - libasound2
0117         - libasound2-data
0118         - libasound2-plugins
0119         - libmpv1
0120         - phonon4qt5
0121         - gstreamer1.0-alsa
0122         - gstreamer1.0-pulseaudio
0123         - gstreamer1.0-plugins-good
0124         - gstreamer1.0-plugins-bad
0125         - gstreamer1.0-plugins-ugly
0126         - phonon4qt5-backend-gstreamer
0127         - oxygen-sounds
0128         - kirigami-addons-data
0129         - qml-module-org-kde-kirigamiaddons
0130         - qml-module-org-kde-qqc2desktopstyle
0131         - qml-module-org-kde-kitemmodels
0132         - qml-module-org-kde-sonnet
0133         - qml-module-org-kde-purpose
0134         - libqt5keychain1
0135         - qml-module-org-kde-kirigami2
0136         - libblas3
0137         - libsecret-1-0
0138         - gnome-keyring
0139         source: .
0140         source-type: local
0141         cmake-parameters:
0142         - "-DCMAKE_INSTALL_PREFIX=/usr"
0143         - "-DCMAKE_BUILD_TYPE=Release"
0144         - "-DENABLE_TESTING=OFF"
0145         - "-DBUILD_TESTING=OFF"
0146         - "-DKDE_SKIP_TEST_SETTINGS=ON"
0147         - "-DCMAKE_FIND_ROOT_PATH=/usr\\;$CRAFT_STAGE\\;/snap/kf5-5-111-qt-5-15-11-core22-sdk/current"
0148         - "-DKDE_INSTALL_PLUGINDIR=/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/plugins/"
0149         prime:
0150         - "-usr/lib/*/cmake/*"
0151         - "-usr/include/*"
0152         - "-usr/share/ECM/*"
0153         - "-usr/share/doc/*"
0154         - "-usr/share/man/*"
0155         - "-usr/share/icons/breeze-dark*"
0156         - "-usr/bin/X11"
0157         - "-usr/lib/gcc/$CRAFT_ARCH_TRIPLET/6.0.0"
0158         - "-usr/lib/aspell/*"
0159         - "-usr/share/lintian"
0160         build-environment: &id005
0161         - *id001
0162         - *id002
0163         - *id003
0164         - *id004
0165         - QML2_IMPORT_PATH: $CRAFT_STAGE/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/qml
0166     cleanup:
0167         after:
0168         - kde-neon
0169         - tokodon
0170         plugin: nil
0171         override-prime:  |
0172             set -eux
0173             # # Unused libraries found by linter
0174