From 2b0baaa55074f1449e758fc3ad9d35edab639086 Mon Sep 17 00:00:00 2001 From: Scarlett Moore Date: Thu, 12 Oct 2023 07:40:10 -0700 Subject: [PATCH] snapcraft: initial import snapcraft files. --- snapcraft.yaml | 201 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 201 insertions(+) create mode 100644 snapcraft.yaml diff --git a/snapcraft.yaml b/snapcraft.yaml new file mode 100644 index 0000000000..dcfe67527a --- /dev/null +++ b/snapcraft.yaml @@ -0,0 +1,201 @@ +# Security rebuild 2 +--- +name: dolphin +confinement: strict +grade: stable +base: core22 +adopt-info: dolphin +apps: + dolphin: + # extensions: + # - kde-neon + common-id: org.kde.dolphin.desktop + desktop: usr/share/applications/org.kde.dolphin.desktop + command: usr/bin/dolphin + plugs: + - home + - desktop + - desktop-legacy + - opengl + - wayland + - x11 + - audio-playback + - unity7 + - network + - network-bind + - mount-observe + - removable-media + - network-observe + command-chain: + - snap/command-chain/desktop-launch +assumes: +- snapd2.55.3 +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 + kf5-5-110-qt-5-15-11-core22: + content: kf5-5-110-qt-5-15-11-core22-all + interface: content + default-provider: kf5-5-110-qt-5-15-11-core22 + target: $SNAP/kf5 +environment: + SNAP_DESKTOP_RUNTIME: $SNAP/kf5 +hooks: + configure: + plugs: + - desktop + command-chain: + - snap/command-chain/hooks-configure-desktop +layout: + /usr/share/X11: + symlink: $SNAP/kf5/usr/share/X11 +slots: + session-dbus-interface: + interface: dbus + name: org.kde.dolphin + bus: session +package-repositories: +- type: apt + components: + - main + suites: + - jammy + key-id: 444DABCF3667D0283F894EDDE6D4736255751E5D + url: http://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: + - PLATFORM_PLUG=kf5-5-110-qt-5-15-11-core22 + build-snaps: + - kf5-5-110-qt-5-15-11-core22-sdk + build-environment: + - &id001 + PATH: /snap/kf5-5-110-qt-5-15-11-core22-sdk/current/usr/bin${PATH:+:$PATH} + - &id002 + 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} + - &id003 + 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} + - &id004 + CRAFT_CMAKE_ARGS: -DCMAKE_FIND_ROOT_PATH=/snap/kf5-5-110-qt-5-15-11-core22-sdk/current${CRAFT_CMAKE_ARGS:+:$CRAFT_CMAKE_ARGS} + baloo-widgets: + after: + - kde-neon + plugin: cmake + build-packages: + - cmake + source: https://invent.kde.org/libraries/baloo-widgets.git + source-branch: release/23.08 + cmake-parameters: + - -DCMAKE_INSTALL_PREFIX=/usr + - -DCMAKE_BUILD_TYPE=Release + - -DENABLE_TESTING=OFF + - -DBUILD_TESTING=OFF + - -DKDE_SKIP_TEST_SETTINGS=ON + - "-DCMAKE_FIND_ROOT_PATH=/usr\\;$CRAFT_STAGE\\;/snap/kf5-5-110-qt-5-15-11-core22-sdk/current" + 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/$SNAPCRAFT_ARCH_TRIPLET/6.0.0" + - "-usr/lib/aspell/*" + build-environment: &id005 + - *id001 + - *id002 + - *id003 + - *id004 + dolphin-plugins: + after: + - kde-neon + - baloo-widgets + - dolphin + plugin: cmake + build-packages: + - cmake + source: https://invent.kde.org/sdk/dolphin-plugins.git + source-branch: release/23.08 + cmake-parameters: + - -DCMAKE_INSTALL_PREFIX=/usr + - -DCMAKE_BUILD_TYPE=Release + - -DENABLE_TESTING=OFF + - -DBUILD_TESTING=OFF + - -DKDE_SKIP_TEST_SETTINGS=ON + - "-DCMAKE_FIND_ROOT_PATH=/usr\\;$CRAFT_STAGE\\;/snap/kf5-5-110-qt-5-15-11-core22-sdk/current" + 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/$SNAPCRAFT_ARCH_TRIPLET/6.0.0" + - "-usr/lib/aspell/*" + build-environment: *id005 + dolphin: + after: + - kde-neon + - baloo-widgets + plugin: cmake + build-packages: + - cmake + - libphonon4qt5experimental-dev + - pkg-config + - kuserfeedback-dev + - libphonon4qt5-dev + - libkf5doctools-dev + stage-packages: + - libglu1-mesa + - freeglut3 + - libphonon4qt5experimental4 + - libkuserfeedbackcore1 + - libkuserfeedbackwidgets1 + - kio + - kio-extras + 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 + - "-DCMAKE_FIND_ROOT_PATH=/usr\\;$CRAFT_STAGE\\;/snap/kf5-5-110-qt-5-15-11-core22-sdk/current" + parse-info: + - usr/share/metainfo/org.kde.dolphin.appdata.xml + 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/$SNAPCRAFT_ARCH_TRIPLET/6.0.0" + - "-usr/lib/aspell/*" + - "-usr/share/kglobalaccel/org.kde.dolphin.desktop" + build-environment: *id005 + cleanup: + after: + - dolphin + plugin: nil + override-prime: | + set -eux + #unused libs from linter +