Warning, /graphics/krita/packaging/linux/snap/snapcraft.yaml is written in an unsupported language. File is not indexed.

0001 name: krita
0002 grade: stable
0003 adopt-info: krita
0004 
0005 base: core18
0006 confinement: strict
0007 compression: lzo
0008 
0009 apps:
0010   krita:
0011     common-id: org.kde.krita
0012     command: usr/bin/krita
0013     command-chain:
0014       - snap/command-chain/add-qt-shortcuts
0015     extensions:
0016       - kde-neon
0017     plugs:
0018       - home
0019       - opengl
0020       - network
0021       - network-bind
0022       - removable-media
0023       - audio-playback
0024     environment:
0025       QT_QPA_PLATFORMTHEME: gtk3
0026 
0027 layout:
0028   /usr/bin/ffmpeg:
0029     bind-file: $SNAP/usr/bin/ffmpeg
0030 
0031 parts:
0032   libheif:
0033     plugin: autotools
0034     source: https://github.com/strukturag/libheif.git
0035     source-tag: v1.7.0
0036     build-packages:
0037       - libde265-dev
0038       - pkg-config
0039       - g++
0040       - libx265-dev
0041       - libjpeg8-dev
0042       - libpng-dev
0043     stage-packages:
0044       - libde265-0
0045       - libx265-146
0046       - libjpeg8
0047       - libpng16-16
0048 
0049   krita:
0050     after:
0051       - libheif
0052     source: https://download.kde.org/stable/krita/4.4.3/krita-4.4.3.tar.xz
0053     # # Use these instead to build from the git source
0054     # source: https://anongit.kde.org/krita.git
0055     # source-type: git
0056     # source-branch: master  
0057     plugin: cmake
0058     configflags:
0059       - "-DCMAKE_INSTALL_PREFIX=/usr"
0060       - "-DCMAKE_BUILD_TYPE=Release"
0061       - "-DENABLE_TESTING=OFF"
0062       - "-DBUILD_TESTING=OFF"
0063       - "-DHIDE_SAFE_ASSERTS=OFF"
0064       - "-DKDE_SKIP_TEST_SETTINGS=ON"
0065     build-snaps: [kde-frameworks-5-core18-sdk]
0066     build-packages:
0067       - libboost-dev
0068       - libboost-system-dev
0069       - libeigen3-dev
0070       - libfftw3-dev
0071       - libgif-dev
0072       - libglew-dev
0073       - libgsf-1-dev
0074       - libgsl-dev
0075       - libjpeg-dev  # This is part of the sdk, but the build crashes if not included..
0076       - libopencolorio-dev
0077       - libopenexr-dev
0078       - libopenimageio-dev
0079       - libopenjp2-7-dev
0080       - libquazip5-dev
0081       - libraw-dev
0082       - libtiff-dev
0083       - libvc-dev
0084       - libx11-dev
0085       - libxi-dev
0086       - vc-dev
0087       - libmypaint-dev
0088     parse-info: [usr/share/metainfo/org.kde.krita.appdata.xml]
0089 
0090 
0091   runtime:
0092     plugin: nil
0093     stage-packages:
0094       - freeglut3 
0095       - libboost-system1.65.1
0096       - libfftw3-double3
0097       - libgif7
0098       - libgsl23
0099       - libgslcblas0
0100       - libilmbase12
0101       - libopencolorio1v5
0102       - libopenexr22
0103       - libquazip5-1
0104       - libraw16
0105       - libtinyxml2.6.2v5
0106       - libxi6
0107       - libyaml-cpp0.5v5
0108       - zlib1g
0109       - libmypaint-1.3-0
0110       # Required for rendering animations
0111       - ffmpeg
0112       - libglu1-mesa
0113       - libslang2
0114     prime:
0115       - "-usr/share/fonts/*"
0116       # libquazip5-1 pulls in Qt5 from bionic as a dependency. We don't
0117       # want it in our snap, however, because we get a newer Qt5 from the
0118       # kde-kf5 platform snap.
0119       - "-usr/lib/x86_64-linux-gnu/libQt5*"
0120       - "-usr/lib/x86_64-linux-gnu/libqt5*"
0121 
0122   launcher:
0123     source: scripts
0124     plugin: dump
0125     organize:
0126       add-qt-shortcuts: snap/command-chain/add-qt-shortcuts
0127     stage-packages:
0128       - xdg-user-dirs
0129 
0130   qtctl:
0131     source: https://github.com/snapcrafters/qtctl.git
0132     plugin: cmake
0133     build-snaps: [kde-frameworks-5-core18-sdk]
0134 
0135   # This part removes all the files in this snap which already exist in
0136   # connected content and base snaps. Since these files will be available
0137   # at runtime from the content and base snaps, they do not need to be
0138   # included in this snap itself.
0139   #
0140   # More info: https://snapcraft-utils-library.readthedocs.io/en/latest/lib/cleanup.html 
0141   #
0142   cleanup:
0143     after:  # Make this part run last; list all your other parts here
0144       - krita
0145       - runtime
0146     plugin: nil
0147     build-snaps:  # List all content-snaps and base snaps you're using here
0148       - core18
0149       - kde-frameworks-5-core18
0150     override-prime: |
0151       set -eux
0152       for snap in "core18" "kde-frameworks-5-core18"; do  # List all content-snaps and base snaps you're using here
0153         cd "/snap/$snap/current" && find . -type f,l -exec rm -f "$SNAPCRAFT_PRIME/{}" \;
0154       done
0155 
0156 plugs:
0157   gtk-3-themes:
0158     interface: content
0159     target: $SNAP/data-dir/themes
0160     default-provider: gtk-common-themes