Warning, /pim/kalarm/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: kalarm
0006 confinement: strict
0007 grade: stable
0008 base: core22
0009 adopt-info: kalarm
0010 apps:
0011     kalarm:
0012         # extensions:
0013         # - kde-neon
0014         common-id: org.kde.kalarm.desktop
0015         desktop: usr/share/applications/org.kde.kalarm.desktop
0016         command: usr/bin/kalarm
0017         plugs:
0018         - desktop
0019         - desktop-legacy
0020         - opengl
0021         - wayland
0022         - x11
0023         - audio-playback
0024         - unity7
0025         - network
0026         - network-bind
0027         - akonadi-svc
0028         command-chain:
0029         - snap/command-chain/desktop-launch
0030 assumes:
0031 - snapd2.55.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-113-qt-5-15-11-core22:
0045         content: kf5-5-113-qt-5-15-11-core22-all
0046         interface: content
0047         default-provider: kf5-5-113-qt-5-15-11-core22
0048         target: $SNAP/kf5
0049     akonadi-svc:
0050         bus: system
0051         interface: dbus
0052         name: org.freedesktop.Akonadi
0053 environment:
0054     SNAP_DESKTOP_RUNTIME: $SNAP/kf5
0055     GST_PLUGIN_PATH: "$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/gstreamer-1.0"
0056     GST_PLUGIN_SYSTEM_PATH: "$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/gstreamer-1.0"
0057     GST_PLUGIN_SCANNER: "$SNAP/kf5/usr/lib/$CRAFT_ARCH_TRIPLET/gstreamer1.0/gstreamer-1.0/gst-plugin-scanner"
0058     QML2_IMPORT_PATH: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/qml:$SNAP/kf5/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/qml
0059 hooks:
0060     configure:
0061         plugs:
0062         - desktop
0063         command-chain:
0064         - snap/command-chain/hooks-configure-desktop
0065 layout:
0066     "/usr/lib/$CRAFT_ARCH_TRIPLET/alsa-lib":
0067         symlink: "$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/alsa-lib"
0068     "/usr/share/alsa":
0069         symlink: "$SNAP/usr/share/alsa"
0070     /usr/share/X11:
0071         symlink: $SNAP/kf5/usr/share/X11
0072 slots:
0073     session-dbus-interface:
0074         interface: dbus
0075         name: org.kde.kalarm.kalarm
0076         bus: session
0077 package-repositories:
0078 -   type: apt
0079     components:
0080     - main
0081     suites:
0082     - jammy
0083     key-id: 444DABCF3667D0283F894EDDE6D4736255751E5D
0084     url: http://origin.archive.neon.kde.org/user
0085     key-server: keyserver.ubuntu.com
0086 parts:
0087     kde-neon:
0088         source: /snap/snapcraft/current/share/snapcraft/extensions/desktop/kde-neon
0089         source-type: local
0090         plugin: make
0091         make-parameters:
0092         - PLATFORM_PLUG=kf5-5-113-qt-5-15-11-core22
0093         build-snaps:
0094         - kf5-5-113-qt-5-15-11-core22-sdk
0095         build-environment:
0096         - &id001
0097             PATH: /snap/kf5-5-113-qt-5-15-11-core22-sdk/current/usr/bin${PATH:+:$PATH}
0098         - &id002
0099             XDG_DATA_DIRS: $CRAFT_STAGE/usr/share:/snap/kf5-5-113-qt-5-15-11-core22-sdk/current/usr/share:/usr/share${XDG_DATA_DIRS:+:$XDG_DATA_DIRS}
0100         - &id003
0101             XDG_CONFIG_HOME: $CRAFT_STAGE/etc/xdg:/snap/kf5-5-113-qt-5-15-11-core22-sdk/current/etc/xdg:/etc/xdg${XDG_CONFIG_HOME:+:$XDG_CONFIG_HOME}
0102         - &id004
0103             CRAFT_CMAKE_ARGS: -DCMAKE_FIND_ROOT_PATH=/snap/kf5-5-113-qt-5-15-11-core22-sdk/current${CRAFT_CMAKE_ARGS:+:$CRAFT_CMAKE_ARGS}
0104     kalarm:
0105         after:
0106         - kde-neon
0107         parse-info:
0108         - usr/share/metainfo/org.kde.kalarm.appdata.xml
0109         plugin: cmake
0110         build-packages:
0111         - kross-dev
0112         - libassuan-dev
0113         - libboost-dev
0114         - libboost-graph-dev
0115         - libphonon4qt5-dev
0116         - libphonon4qt5experimental-dev
0117         - pkg-config
0118         - xsltproc
0119         - zlib1g-dev
0120         build-snaps:
0121         - akonadi-sdk/edge
0122         stage-packages:
0123         - libasound2
0124         - libasound2-data
0125         - libasound2-plugins
0126         - phonon4qt5
0127         - libphonon4qt5experimental4
0128         - gstreamer1.0-alsa
0129         - gstreamer1.0-pulseaudio
0130         - gstreamer1.0-plugins-good
0131         - gstreamer1.0-plugins-bad
0132         - gstreamer1.0-plugins-ugly
0133         - phonon4qt5-backend-gstreamer
0134         - oxygen-sounds
0135         - kross
0136         - libassuan0
0137         - libboost-graph1.74.0
0138         - pkg-config
0139         - xsltproc
0140         - zlib1g
0141         stage-snaps:
0142         - khelpcenter
0143         - akonadi/edge
0144         source: .
0145         source-type: local
0146         cmake-parameters:
0147         - "-DKDE_INSTALL_USE_QT_SYS_PATHS=FALSE"
0148         - "-DCMAKE_INSTALL_PREFIX=/usr"
0149         - "-DCMAKE_BUILD_TYPE=Release"
0150         - "-DENABLE_TESTING=OFF"
0151         - "-DBUILD_TESTING=OFF"
0152         - "-DKDE_SKIP_TEST_SETTINGS=ON"
0153         - "-DCMAKE_FIND_ROOT_PATH=$CRAFT_STAGE\\;/snap/kf5-5-113-qt-5-15-11-core22-sdk/current\\;/snap/akonadi-sdk/current"
0154         - "-DKDE_INSTALL_PLUGINDIR=/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/plugins/"
0155         prime:
0156         - "-usr/lib/*/cmake/*"
0157         - "-usr/include/*"
0158         - "-usr/share/ECM/*"
0159         - "-usr/share/man/*"
0160         - "-usr/share/icons/breeze-dark*"
0161         - "-usr/bin/X11"
0162         - "-usr/lib/gcc/$CRAFT_ARCH_TRIPLET/6.0.0"
0163         - "-usr/lib/aspell/*"
0164         - "-usr/share/lintian"
0165         build-environment:
0166         - *id001
0167         - *id002
0168         - *id003
0169         - *id004
0170         - QML2_IMPORT_PATH: $CRAFT_STAGE/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/qml:/snap/kf5-5-113-qt-5-15-11-core22-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/qml
0171     cleanup:
0172         after:
0173         - kalarm
0174         plugin: nil
0175         override-prime: |
0176             set -eux
0177             # Unused libs in linters