2023-11-01 12:38:45 +01:00
|
|
|
# SPDX-FileCopyrightText: 2023 Scarlett Moore <sgmoore@kde.org>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
2023-10-14 17:49:50 +02:00
|
|
|
---
|
|
|
|
name: kasts
|
|
|
|
confinement: strict
|
|
|
|
grade: stable
|
|
|
|
base: core22
|
|
|
|
adopt-info: kasts
|
|
|
|
apps:
|
|
|
|
kasts:
|
|
|
|
# extensions:
|
|
|
|
# - kde-neon
|
2023-10-30 16:31:27 +01:00
|
|
|
common-id: org.kde.kasts
|
2023-10-14 17:49:50 +02:00
|
|
|
desktop: usr/share/applications/org.kde.kasts.desktop
|
|
|
|
command: usr/bin/kasts
|
|
|
|
plugs:
|
|
|
|
- home
|
|
|
|
- desktop
|
|
|
|
- desktop-legacy
|
|
|
|
- opengl
|
|
|
|
- wayland
|
|
|
|
- x11
|
|
|
|
- audio-playback
|
|
|
|
- unity7
|
|
|
|
- network
|
|
|
|
- network-bind
|
2023-10-15 13:21:01 +02:00
|
|
|
- network-manager-observe
|
2023-10-30 16:31:27 +01:00
|
|
|
- alsa
|
2023-11-01 12:38:45 +01:00
|
|
|
- mpris
|
2023-10-14 17:49:50 +02:00
|
|
|
command-chain:
|
|
|
|
- snap/command-chain/desktop-launch
|
|
|
|
assumes:
|
2023-10-15 13:21:01 +02:00
|
|
|
- snapd2.58.3
|
2023-10-14 17:49:50 +02:00
|
|
|
compression: lzo
|
|
|
|
plugs:
|
|
|
|
desktop:
|
|
|
|
mount-host-font-cache: false
|
|
|
|
icon-themes:
|
|
|
|
interface: content
|
|
|
|
target: $SNAP/data-dir/icons
|
|
|
|
default-provider: gtk-common-themes
|
|
|
|
sound-themes:
|
|
|
|
interface: content
|
|
|
|
target: $SNAP/data-dir/sounds
|
|
|
|
default-provider: gtk-common-themes
|
2023-10-30 16:31:27 +01:00
|
|
|
kf5-5-111-qt-5-15-11-core22:
|
|
|
|
content: kf5-5-111-qt-5-15-11-core22-all
|
2023-10-14 17:49:50 +02:00
|
|
|
interface: content
|
2023-10-30 16:31:27 +01:00
|
|
|
default-provider: kf5-5-111-qt-5-15-11-core22
|
2023-10-14 17:49:50 +02:00
|
|
|
target: $SNAP/kf5
|
|
|
|
environment:
|
|
|
|
SNAP_DESKTOP_RUNTIME: $SNAP/kf5
|
2023-10-15 13:21:01 +02:00
|
|
|
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"
|
|
|
|
QT_PLUGIN_PATH: "$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/plugins:$SNAP/kf5/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/qt5/plugins/kf5"
|
|
|
|
QT_QUICK_CONTROLS_STYLE: org.kde.desktop
|
2023-10-14 17:49:50 +02:00
|
|
|
GST_PLUGIN_PATH: "$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/gstreamer-1.0"
|
|
|
|
GST_PLUGIN_SYSTEM_PATH: "$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/gstreamer-1.0"
|
2023-10-30 16:31:27 +01:00
|
|
|
GST_PLUGIN_SCANNER: "$SNAP/kf5/usr/lib/$CRAFT_ARCH_TRIPLET/gstreamer1.0/gstreamer-1.0/gst-plugin-scanner"
|
2023-10-14 17:49:50 +02:00
|
|
|
hooks:
|
|
|
|
configure:
|
|
|
|
plugs:
|
|
|
|
- desktop
|
|
|
|
command-chain:
|
|
|
|
- snap/command-chain/hooks-configure-desktop
|
|
|
|
layout:
|
|
|
|
/usr/share/X11:
|
|
|
|
symlink: $SNAP/kf5/usr/share/X11
|
|
|
|
"/usr/lib/$CRAFT_ARCH_TRIPLET/alsa-lib":
|
|
|
|
bind: "$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/alsa-lib"
|
|
|
|
"/usr/share/alsa":
|
|
|
|
bind: "$SNAP/usr/share/alsa"
|
2023-10-30 16:31:27 +01:00
|
|
|
"/etc/alsa/conf.d":
|
|
|
|
bind: "$SNAP/etc/alsa/conf.d"
|
2023-10-14 17:49:50 +02:00
|
|
|
package-repositories:
|
|
|
|
- type: apt
|
|
|
|
components:
|
|
|
|
- main
|
|
|
|
suites:
|
|
|
|
- jammy
|
|
|
|
key-id: 444DABCF3667D0283F894EDDE6D4736255751E5D
|
|
|
|
url: https://origin.archive.neon.kde.org/user
|
|
|
|
key-server: keyserver.ubuntu.com
|
|
|
|
parts:
|
|
|
|
kde-neon:
|
|
|
|
source: /snap/snapcraft/current/share/snapcraft/extensions/desktop/kde-neon
|
|
|
|
source-type: local
|
|
|
|
plugin: make
|
|
|
|
make-parameters:
|
2023-10-30 16:31:27 +01:00
|
|
|
- PLATFORM_PLUG=kf5-5-111-qt-5-15-11-core22
|
2023-10-14 17:49:50 +02:00
|
|
|
build-snaps:
|
2023-10-30 16:31:27 +01:00
|
|
|
- kf5-5-111-qt-5-15-11-core22-sdk
|
2023-10-14 17:49:50 +02:00
|
|
|
build-environment:
|
|
|
|
- &id001
|
2023-10-30 16:31:27 +01:00
|
|
|
PATH: /snap/kf5-5-111-qt-5-15-11-core22-sdk/current/usr/bin${PATH:+:$PATH}
|
2023-10-14 17:49:50 +02:00
|
|
|
- &id002
|
2023-10-30 16:31:27 +01:00
|
|
|
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}
|
2023-10-14 17:49:50 +02:00
|
|
|
- &id003
|
2023-10-30 16:31:27 +01:00
|
|
|
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}
|
2023-10-14 17:49:50 +02:00
|
|
|
- &id004
|
2023-10-30 16:31:27 +01:00
|
|
|
CRAFT_CMAKE_ARGS: -DCMAKE_FIND_ROOT_PATH=/snap/kf5-5-111-qt-5-15-11-core22-sdk/current${CRAFT_CMAKE_ARGS:+:$CRAFT_CMAKE_ARGS}
|
2023-10-14 17:49:50 +02:00
|
|
|
kasts:
|
|
|
|
after:
|
|
|
|
- kde-neon
|
|
|
|
parse-info:
|
|
|
|
- usr/share/metainfo/org.kde.kasts.appdata.xml
|
|
|
|
plugin: cmake
|
|
|
|
build-packages:
|
|
|
|
- kirigami-addons-dev
|
|
|
|
- libkf5syndication-dev
|
|
|
|
- libqt5svg5-dev
|
|
|
|
- libtag1-dev
|
|
|
|
- qtkeychain-qt5-dev
|
|
|
|
- qtdeclarative5-dev
|
|
|
|
- qtmultimedia5-dev
|
|
|
|
- qtquickcontrols2-5-dev
|
2023-10-30 16:31:27 +01:00
|
|
|
- libvlc-dev
|
|
|
|
- libsecret-1-dev
|
2023-10-14 17:49:50 +02:00
|
|
|
stage-packages:
|
|
|
|
- gstreamer1.0-alsa
|
2023-10-30 16:31:27 +01:00
|
|
|
- gstreamer1.0-plugins-base
|
2023-10-14 17:49:50 +02:00
|
|
|
- gstreamer1.0-plugins-bad
|
2023-10-30 16:31:27 +01:00
|
|
|
- gstreamer1.0-plugins-good
|
2023-10-14 17:49:50 +02:00
|
|
|
- gstreamer1.0-plugins-ugly
|
2023-10-30 16:31:27 +01:00
|
|
|
- gstreamer1.0-libav
|
|
|
|
- libasound2
|
|
|
|
- libasound2-data
|
|
|
|
- libasound2-plugins
|
|
|
|
- libasound2-plugins-extra
|
2023-10-14 17:49:50 +02:00
|
|
|
- oxygen-sounds
|
|
|
|
- libkf5syndication5
|
|
|
|
- kirigami-addons-data
|
|
|
|
- qml-module-org-kde-kirigami-addons-datetime
|
|
|
|
- qml-module-org-kde-kirigami-addons-labs-components
|
|
|
|
- qml-module-org-kde-kirigami-addons-labs-mobileform
|
|
|
|
- qml-module-org-kde-kirigami-addons-sounds
|
|
|
|
- qml-module-org-kde-kirigami-addons-treeview
|
2023-10-15 13:21:01 +02:00
|
|
|
- qml-module-org-kde-qqc2desktopstyle
|
2023-10-14 17:49:50 +02:00
|
|
|
- libtag1v5
|
|
|
|
- libqt5keychain1
|
|
|
|
- libkf5networkmanagerqt6
|
|
|
|
- libvlc5
|
|
|
|
- libnm0
|
2023-10-30 16:31:27 +01:00
|
|
|
- libsecret-1-0
|
2023-11-09 14:50:41 +01:00
|
|
|
- mpg123
|
|
|
|
- gnome-keyring
|
2023-10-14 17:49:50 +02:00
|
|
|
source: .
|
|
|
|
source-type: local
|
|
|
|
cmake-parameters:
|
|
|
|
- "-DCMAKE_INSTALL_PREFIX=/usr"
|
|
|
|
- "-DCMAKE_BUILD_TYPE=Release"
|
|
|
|
- "-DENABLE_TESTING=OFF"
|
|
|
|
- "-DBUILD_TESTING=OFF"
|
|
|
|
- "-DKDE_SKIP_TEST_SETTINGS=ON"
|
2023-10-30 16:31:27 +01:00
|
|
|
- "-DCMAKE_FIND_ROOT_PATH=$CRAFT_STAGE\\;/snap/kf5-5-111-qt-5-15-11-core22-sdk/current"
|
2023-10-14 17:49:50 +02:00
|
|
|
- "-DKDE_INSTALL_PLUGINDIR=/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/plugins/"
|
|
|
|
prime:
|
|
|
|
- "-usr/lib/*/cmake/*"
|
|
|
|
- "-usr/include/*"
|
|
|
|
- "-usr/share/ECM/*"
|
|
|
|
- "-usr/share/doc/*"
|
|
|
|
- "-usr/share/man/*"
|
|
|
|
- "-usr/share/icons/breeze-dark*"
|
|
|
|
- "-usr/bin/X11"
|
|
|
|
- "-usr/lib/gcc/$CRAFT_ARCH_TRIPLET/6.0.0"
|
|
|
|
- "-usr/lib/aspell/*"
|
|
|
|
- "-usr/share/lintian"
|
|
|
|
build-environment: &id005
|
|
|
|
- *id001
|
|
|
|
- *id002
|
|
|
|
- *id003
|
|
|
|
- *id004
|
|
|
|
cleanup:
|
|
|
|
after:
|
|
|
|
- kde-neon
|
|
|
|
- kasts
|
|
|
|
plugin: nil
|
|
|
|
override-prime: |
|
|
|
|
set -eux
|
|
|
|
# # Unused libraries found by linter
|
|
|
|
|