Warning, /network/neochat/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: neochat
0007 base: core22
0008 adopt-info: neochat
0009 grade: stable
0010 confinement: strict
0011 apps:
0012     neochat:
0013         # extensions:
0014         # - kde-neon
0015         command: usr/bin/neochat
0016         common-id: org.kde.neochat
0017         desktop: usr/share/applications/org.kde.neochat.desktop
0018         plugs:
0019         - home
0020         - removable-media
0021         - desktop
0022         - desktop-legacy
0023         - opengl
0024         - wayland
0025         - x11
0026         - audio-playback
0027         - unity7
0028         - network
0029         - network-bind
0030         - network-manager-observe
0031         - password-manager-service
0032         - accounts-service
0033         command-chain:
0034         - snap/command-chain/desktop-launch
0035 assumes:
0036 - snapd2.58.3
0037 compression: lzo
0038 plugs:
0039     desktop:
0040         mount-host-font-cache: false
0041     icon-themes:
0042         interface: content
0043         target: $SNAP/data-dir/icons
0044         default-provider: gtk-common-themes
0045     sound-themes:
0046         interface: content
0047         target: $SNAP/data-dir/sounds
0048         default-provider: gtk-common-themes
0049     kf5-5-111-qt-5-15-11-core22:
0050         content: kf5-5-111-qt-5-15-11-core22-all
0051         interface: content
0052         default-provider: kf5-5-111-qt-5-15-11-core22
0053         target: $SNAP/kf5
0054 environment:
0055     SNAP_DESKTOP_RUNTIME: $SNAP/kf5
0056     QML2_IMPORT_PATH: "$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/qml:$SNAP/kf5/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/qml:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/qml"
0057     QT_QUICK_CONTROLS_STYLE: org.kde.desktop
0058     XDG_DATA_DIRS: "$SNAP/.local"
0059     XDG_CONFIG_DIRS: "$SNAP/etc/xdg"
0060 hooks:
0061     configure:
0062         plugs:
0063         - desktop
0064         command-chain:
0065         - snap/command-chain/hooks-configure-desktop
0066 layout:
0067     /usr/share/X11:
0068         symlink: $SNAP/kf5/usr/share/X11
0069 slots:
0070     session-dbus-interface:
0071         interface: dbus
0072         name: org.kde.neochat
0073         bus: session
0074 package-repositories:
0075 -   type: apt
0076     components:
0077     - main
0078     suites:
0079     - jammy
0080     key-id: 444DABCF3667D0283F894EDDE6D4736255751E5D
0081     url: http://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     qtkeychain:
0102         after:
0103         - kde-neon
0104         source: https://github.com/frankosterfeld/qtkeychain.git
0105         source-tag: v0.14.0
0106         source-depth: 0
0107         plugin: cmake
0108         build-packages:
0109         - libsecret-1-dev
0110         stage-packages:
0111         - libsecret-1-0
0112         - gnome-keyring
0113         cmake-parameters:
0114         - "-DKDE_INSTALL_USE_QT_SYS_PATHS=FALSE"
0115         - "-DCMAKE_INSTALL_PREFIX=/usr"
0116         - "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
0117         - "-DENABLE_TESTING=OFF"
0118         - "-DBUILD_TESTING=OFF"
0119         - "-DKDE_SKIP_TEST_SETTINGS=ON"
0120         - "-DCMAKE_FIND_ROOT_PATH=$CRAFT_STAGE\\;/snap/kf5-5-111-qt-5-15-11-core22/current"
0121         - "-DBUILD_TRANSLATIONS=OFF"
0122         - "-DLIBSECRET_SUPPORT=ON"
0123         - "-DKEYCHAIN_DBUS=1"
0124         prime:
0125         - "-usr/include/qt5keychain"
0126         - "-usr/lib/$CRAFT_ARCH_TRIPLET/libqt5keychain.so"
0127         - "-usr/mkspecs"
0128         - "-usr/lib/$CRAFT_ARCH_TRIPLET/cmake"
0129     libmatrixclient:
0130         after:
0131         - kde-neon
0132         - qtkeychain
0133         source: https://github.com/quotient-im/libQuotient.git
0134         source-tag: 0.8.1.2
0135         source-depth: 0
0136         plugin: cmake
0137         build-packages:
0138         - qtmultimedia5-dev
0139         - libolm-dev
0140         - libssl-dev
0141         cmake-parameters:
0142         - "-DCMAKE_INSTALL_PREFIX=/usr"
0143         - "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
0144         - "-DENABLE_TESTING=OFF"
0145         - "-DBUILD_TESTING=OFF"
0146         - "-DKDE_SKIP_TEST_SETTINGS=ON"
0147         - "-DQuotient_ENABLE_E2EE=ON"
0148         - "-DBUILDING_SHARED_QUOTIENT=ON"
0149         - "-DCMAKE_FIND_ROOT_PATH=$CRAFT_STAGE\\;/snap/kf5-5-111-qt-5-15-11-core22/current"
0150     neochat:
0151         after:
0152         - kde-neon
0153         - qtkeychain
0154         - libmatrixclient
0155         parse-info:
0156         - usr/share/metainfo/org.kde.neochat.appdata.xml
0157         source: .
0158         source-type: local
0159         plugin: cmake
0160         build-packages:
0161         - cmark
0162         - gcc-10
0163         - g++-10
0164         - libcmark-dev
0165         - kquickimageeditor-dev
0166         - libkf5qqc2desktopstyle-dev
0167         - qcoro-qt5-dev
0168         - kirigami-addons-dev
0169         - reuse
0170         - libkf5doctools-dev
0171         - qtbase5-private-dev
0172         - qml-module-org-kde-kquickimageeditor
0173         - qml-module-org-kde-qqc2desktopstyle
0174         - kirigami-addons-data
0175         - qml-module-org-kde-kirigamiaddons
0176         - qml-module-org-kde-quickcharts
0177         - libsqlite3-dev
0178         - libolm-dev
0179         stage-packages:
0180         - libcmark0.30.2
0181         - qml-module-org-kde-kquickimageeditor
0182         - qml-module-org-kde-qqc2desktopstyle
0183         - kirigami-addons-data
0184         - qml-module-org-kde-kirigamiaddons
0185         - qml-module-org-kde-quickcharts
0186         - qml-module-org-kde-kirigami2
0187         - reuse
0188         - libsqlite3-0
0189         - libolm3
0190         cmake-parameters:
0191         - "-DKDE_INSTALL_USE_QT_SYS_PATHS=FALSE"
0192         - "-DCMAKE_INSTALL_PREFIX=/usr"
0193         - "-DCMAKE_BUILD_TYPE=Release"
0194         - "-DENABLE_TESTING=OFF"
0195         - "-DBUILD_TESTING=OFF"
0196         - "-DKDE_SKIP_TEST_SETTINGS=ON"
0197         - "-DNEOCHAT_FLATPAK=ON"
0198         - "-DCMAKE_FIND_ROOT_PATH=$CRAFT_STAGE\\;/snap/kf5-5-111-qt-5-15-11-core22-sdk/current"
0199         - "-DKDE_INSTALL_PLUGINDIR=/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/plugins/"
0200         prime:
0201         - "-usr/lib/*/cmake/*"
0202         - "-usr/include/*"
0203         - "-usr/share/ECM/*"
0204         - "-usr/share/doc/*"
0205         - "-usr/share/man/*"
0206         - "-usr/share/icons/breeze-dark*"
0207         - "-usr/bin/X11"
0208         - "-usr/lib/gcc/$CRAFT_ARCH_TRIPLET/6.0.0"
0209         - "-usr/lib/aspell/*"
0210         - "-usr/share/lintian"
0211         build-environment: &id005
0212         - *id001
0213         - *id002
0214         - *id003
0215         - *id004
0216     cleanup:
0217         after:
0218         - kde-neon
0219         - neochat
0220         plugin: nil
0221         override-prime:  |
0222             set -eux
0223             # find $CRAFT_PRIME/usr/share/doc/ -type f -not -name 'copyright' -delete
0224             # find $CRAFT_PRIME/usr/share -type d -empty -delete | /bin/true
0225             # # Unused libraries found by linter