Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
snapcraft: Move to core24 and qt6.
Scarlett Moore38f844f775ee
diff --git a/packaging/linux/snap/snapcraft.yaml b/packaging/linux/snap/snapcraft.yamlindex 390c6ee278..9aa5671405 100644--- a/packaging/linux/snap/snapcraft.yaml+++ b/packaging/linux/snap/snapcraft.yaml@@ -1,160 +1,176 @@+# SPDX-FileCopyrightText: 2023-2026 Scarlett Moore <[email protected]>+#+# SPDX-License-Identifier: CC0-1.0+---name: kritagrade: stableadopt-info: krita--base: core18+base: core24confinement: strict-compression: lzo-apps:krita:common-id: org.kde.krita+ desktop: usr/share/applications/org.kde.krita.desktopcommand: usr/bin/krita- command-chain:- - snap/command-chain/add-qt-shortcutsextensions:- - kde-neon+ - kde-neon-6plugs:- home- - opengl- - network- - network-bind- removable-media- - audio-playback+ - cupsenvironment:- QT_QPA_PLATFORMTHEME: gtk3--layout:- /usr/bin/ffmpeg:- bind-file: $SNAP/usr/bin/ffmpeg-+ LD_LIBRARY_PATH: $SNAP/ffmpeg-platform/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR:${LD_LIBRARY_PATH}+ PATH: $SNAP/ffmpeg-platform/usr/bin:${PATH}+plugs:+ ffmpeg-2404:+ interface: content+ target: ffmpeg-platform # the folder where this content snap will be mounted+ default-provider: ffmpeg-2404+slots:+ session-dbus-interface:+ interface: dbus+ name: org.kde.krita+ bus: sessionparts:- libheif:- plugin: autotools- source: https://github.com/strukturag/libheif.git- source-tag: v1.7.0+ kdcraw:+ source: https://invent.kde.org/graphics/libkdcraw.git+ source-branch: release/25.12+ plugin: cmake+ cmake-parameters:+ - -DCMAKE_INSTALL_PREFIX=/usr+ - -DCMAKE_BUILD_TYPE=Release+ - -DENABLE_TESTING=OFF+ - -DBUILD_TESTING=OFF+ - -DKDE_SKIP_TEST_SETTINGS=ONbuild-packages:- - libde265-dev+ - cmake+ - libraw-dev+ - libx11-dev- pkg-config- - g++- - libx265-dev- - libjpeg8-dev- - libpng-dev- stage-packages:- - libde265-0- - libx265-146- - libjpeg8- - libpng16-16-krita:after:- - libheif- source: https://download.kde.org/stable/krita/4.4.3/krita-4.4.3.tar.xz- # # Use these instead to build from the git source- # source: https://anongit.kde.org/krita.git- # source-type: git- # source-branch: master+ - kdcraw+ source: .+ source-type: localplugin: cmake- configflags:- - "-DCMAKE_INSTALL_PREFIX=/usr"- - "-DCMAKE_BUILD_TYPE=Release"- - "-DENABLE_TESTING=OFF"- - "-DBUILD_TESTING=OFF"- - "-DHIDE_SAFE_ASSERTS=OFF"- - "-DKDE_SKIP_TEST_SETTINGS=ON"- build-snaps: [kde-frameworks-5-core18-sdk]+ cmake-parameters:+ - -DCMAKE_INSTALL_PREFIX=/usr+ - -DCMAKE_BUILD_TYPE=Release+ - -DENABLE_TESTING=OFF+ - -DBUILD_TESTING=OFF+ - -DKDE_SKIP_TEST_SETTINGS=ON+ - -DBUILD_KRITA_QT_DESIGNER_PLUGINS=OFFbuild-packages:- - libboost-dev+ - cmake+ - gettext+ - libkseexpr-dev- libboost-system-dev+ - libcurl4-gnutls-dev- libeigen3-dev+ - libexiv2-dev- libfftw3-dev- libgif-dev- - libglew-dev- - libgsf-1-dev- libgsl-dev- - libjpeg-dev # This is part of the sdk, but the build crashes if not included..+ - libheif-dev+ - libimmer-dev+ - libjpeg-dev+ - liblager-dev+ - liblcms2-dev+ - libmypaint-dev- libopencolorio-dev- libopenexr-dev- - libopenimageio-dev- libopenjp2-7-dev+ - libpng-dev+ - libpostproc-dev- libquazip5-dev- libraw-dev+ - libraqm-dev- libtiff-dev- - libvc-dev- - libx11-dev+ - libturbojpeg0-dev+ - libunibreak-dev+ - libwebp-dev+ - libxcb-util0-dev+ - libxcb1-dev- libxi-dev+ - libxsimd-dev+ - libzug-dev+ - pkg-config+ - python3-sip-dev- vc-dev- - libmypaint-dev- parse-info: [usr/share/metainfo/org.kde.krita.appdata.xml]--- runtime:- plugin: nil+ - xtl-dev+ - zlib1g-dev+ - libmlt-dev+ - libmlt++-dev+ - libsdl2-dev+ - libfribidi-dev+ - libfreetype6-dev+ build-snaps:+ - ffmpeg-2404-sdk+ - kde-qt6-core24-sdk/latest/stable+ - kde-pyside6-core24-sdk/latest/stable+ parse-info:+ - usr/share/metainfo/org.kde.krita.appdata.xmlstage-packages:- - freeglut3- - libboost-system1.65.1+ - libexiv2-27- libfftw3-double3+ - libfontconfig1+ - libfreetype6+ - libgcc-s1- libgif7- - libgsl23- - libgslcblas0- - libilmbase12- - libopencolorio1v5- - libopenexr22+ - libgsl27+ - libheif1+ - libjpeg-turbo8+ - libkseexpr4+ - libkseexprui4+ - liblcms2-2+ - libmypaint-1.5-1+ - libopencolorio2.1t64+ - libopenexr-3-1-30+ - libopenjp2-7+ - libpng16-16+ - libpython3.12- libquazip5-1- - libraw16- - libtinyxml2.6.2v5- - libxi6- - libyaml-cpp0.5v5+ - libtiff6+ - libturbojpeg+ - libunibreak5+ - libwebp7+ - libwebpdemux2+ - libwebpmux3+ - libx11-6- zlib1g- - libmypaint-1.3-0- # Required for rendering animations- - ffmpeg- - libglu1-mesa- - libslang2+ - colord+ - colord-data+ - libmlt7+ - libsdl2-2.0-0+ - libmlt++7+ - libimath-3-1-29prime:- - "-usr/share/fonts/*"- # libquazip5-1 pulls in Qt5 from bionic as a dependency. We don't- # want it in our snap, however, because we get a newer Qt5 from the- # kde-kf5 platform snap.- - "-usr/lib/x86_64-linux-gnu/libQt5*"- - "-usr/lib/x86_64-linux-gnu/libqt5*"-- launcher:- source: scripts+ - -usr/lib/*/cmake/*+ - -usr/include/*+ - -usr/share/ECM/*+ - -usr/share/doc/*+ - -usr/share/man/*+ - -usr/bin/X11+ - -usr/lib/gcc/$CRAFT_ARCH_TRIPLET_BUILD_FOR/6.0.0+ - -usr/lib/aspell/*+ gpu-2404:+ after: [krita]+ source: https://github.com/canonical/gpu-snap.gitplugin: dump- organize:- add-qt-shortcuts: snap/command-chain/add-qt-shortcuts- stage-packages:- - xdg-user-dirs-- qtctl:- source: https://github.com/snapcrafters/qtctl.git- plugin: cmake- build-snaps: [kde-frameworks-5-core18-sdk]-- # This part removes all the files in this snap which already exist in- # connected content and base snaps. Since these files will be available- # at runtime from the content and base snaps, they do not need to be- # included in this snap itself.- #- # More info: https://snapcraft-utils-library.readthedocs.io/en/latest/lib/cleanup.html- #+ override-prime: |+ craftctl default+ ${CRAFT_PART_SRC}/bin/gpu-2404-cleanup mesa-2404+ prime:+ - bin/gpu-2404-wrappercleanup:- after: # Make this part run last; list all your other parts here+ after:- krita- - runtimeplugin: nil- build-snaps: # List all content-snaps and base snaps you're using here- - core18- - kde-frameworks-5-core18+ build-snaps:+ - core24+ - kf6-core24override-prime: |set -eux- for snap in "core18" "kde-frameworks-5-core18"; do # List all content-snaps and base snaps you're using here- cd "/snap/$snap/current" && find . -type f,l -exec rm -f "$SNAPCRAFT_PRIME/{}" \;+ for snap in "core24" "kf6-core24"; do+ cd "/snap/$snap/current" && find . -type f,l -exec rm -rf "${CRAFT_PRIME}/{}" \;done--plugs:- gtk-3-themes:- interface: content- target: $SNAP/data-dir/themes- default-provider: gtk-common-themesdiff --git a/snapcraft.yaml b/snapcraft.yamlnew file mode 120000index 0000000000..09c54862ba--- /dev/null+++ b/snapcraft.yaml@@ -0,0 +1 @@+packaging/linux/snap/snapcraft.yaml\ No newline at end of file