Warning, /multimedia/kdenlive/snapcraft.yaml is written in an unsupported language. File is not indexed.

0001 # Trigger rebuild 2
0002 ---
0003 name: kdenlive
0004 confinement: strict
0005 grade: stable
0006 base: core22
0007 adopt-info: kdenlive
0008 apps:
0009     kdenlive:
0010         # extensions:
0011         # - kde-neon
0012         common-id: org.kde.kdenlive.desktop
0013         desktop: usr/share/applications/org.kde.kdenlive.desktop
0014         command: usr/bin/kdenlive
0015         plugs:
0016         - desktop
0017         - desktop-legacy
0018         - opengl
0019         - wayland
0020         - x11
0021         - home
0022         - network
0023         - network-bind
0024         - audio-playback
0025         - audio-record
0026         - removable-media
0027         - system-observe
0028         command-chain:
0029         - snap/command-chain/desktop-launch
0030     pip:
0031         command: bin/pip
0032         plugs:
0033         - network
0034         - home
0035 assumes:
0036 - snapd2.55.3
0037 compression: lzo
0038 plugs:
0039     desktop:
0040         mount-host-font-cache: false
0041     icon-themes:
0042         interface: content
0043         target: $SNAP/data-dir/icons
0044         default-provider: gtk-common-themes
0045     sound-themes:
0046         interface: content
0047         target: $SNAP/data-dir/sounds
0048         default-provider: gtk-common-themes
0049     kf5-5-110-qt-5-15-11-core22:
0050         content: kf5-5-110-qt-5-15-11-core22-all
0051         interface: content
0052         default-provider: kf5-5-110-qt-5-15-11-core22
0053         target: $SNAP/kf5
0054 hooks:
0055     configure:
0056         plugs:
0057         - desktop
0058         command-chain:
0059         - snap/command-chain/hooks-configure-desktop
0060 layout:
0061     /usr/share/X11:
0062         symlink: $SNAP/kf5/usr/share/X11
0063 environment:
0064     PYTHONPYCACHEPREFIX: "$SNAP_USER_COMMON/.pycache"
0065     PYTHONUSERBASE: $SNAP_USER_COMMON/.local
0066     PIP_USER: 1
0067     PYTHONPATH: "$PYTHONUSERBASE/lib/python3.10/site-packages:$SNAP/lib/python3.10/site-packages:$SNAP/usr/lib/python3/dist-packages"
0068     MLT_REPOSITORY: "$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/mlt-7/"
0069     MLT_DATA: "$SNAP/usr/share/mlt-7/"
0070     MLT_ROOT_DIR: "$SNAP/usr/"
0071     LADSPA_PATH: "$SNAP/usr/lib/ladspa"
0072     FREI0R_PATH: "$SNAP/usr/lib/frei0r-1"
0073     MLT_PROFILES_PATH: "$SNAP/usr/share/mlt-7/profiles/"
0074     MLT_PRESETS_PATH: "$SNAP/usr/share/mlt-7/presets/"
0075     SNAP_DESKTOP_RUNTIME: $SNAP/kf5
0076     LD_LIBRARY_PATH: "$LD_LIBRARY_PATH:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/:$SNAP/kf5/usr/lib/$CRAFT_ARCH_TRIPLET/:$SNAP/usr/lib:/$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/blas:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/lapack"
0077 slots:
0078     session-dbus-interface:
0079         interface: dbus
0080         name: org.kde.kdenlive
0081         bus: session
0082 package-repositories:
0083 -   type: apt
0084     components:
0085     - main
0086     suites:
0087     - jammy
0088     key-id: 444DABCF3667D0283F894EDDE6D4736255751E5D
0089     url: http://archive.neon.kde.org/user
0090     key-server: keyserver.ubuntu.com
0091 parts:
0092     kde-neon:
0093         source: /snap/snapcraft/current/share/snapcraft/extensions/desktop/kde-neon
0094         source-type: local
0095         plugin: make
0096         make-parameters:
0097         - PLATFORM_PLUG=kf5-5-110-qt-5-15-11-core22
0098         build-snaps:
0099         - kf5-5-110-qt-5-15-11-core22-sdk
0100         build-environment:
0101         - &id001
0102             PATH: /snap/kf5-5-110-qt-5-15-11-core22-sdk/current/usr/bin${PATH:+:$PATH}
0103         - &id002
0104             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}
0105         - &id003
0106             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}
0107         - &id004
0108             CRAFT_CMAKE_ARGS: -DCMAKE_FIND_ROOT_PATH=/snap/kf5-5-110-qt-5-15-11-core22-sdk/current${CRAFT_CMAKE_ARGS:+:$CRAFT_CMAKE_ARGS}
0109     python-deps:
0110         after:
0111         - kde-neon
0112         plugin: python
0113         source: .
0114         build-packages:
0115         - python3-dev
0116         python-packages:
0117         - vosk
0118         - srt
0119         - pip
0120         stage:
0121         - "-pyvenv.cfg"
0122     kdenlive:
0123         after:
0124         - kde-neon
0125         - python-deps
0126         parse-info:
0127         - usr/share/metainfo/org.kde.kdenlive.appdata.xml
0128         plugin: cmake
0129         build-packages:
0130         - cmake
0131         - libkf5doctools-dev
0132         - libkf5purpose-dev
0133         - librttr-dev
0134         - libv4l-dev
0135         - libmlt++-dev
0136         - libmlt-dev
0137         build-snaps:
0138         - ffmpeg-2204
0139         stage-packages:
0140         - on amd64:
0141             - libpsm-infinipath1
0142         - frei0r-plugins
0143         - librttr-core0.9.6
0144         - libkf5purpose-bin
0145         - dvgrab
0146         - recordmydesktop
0147         - swh-plugins
0148         - libslang2
0149         - libmagic1
0150         - libgpm2
0151         - kio-extras
0152         - mediainfo
0153         - kded5
0154         - kinit
0155         - kio
0156         - melt
0157         - qml-module-qtquick-controls
0158         - qml-module-qtquick-shapes
0159         - qml-module-qtquick2
0160         - libcudart11.0
0161         stage-snaps:
0162         - ffmpeg-2204
0163         source: .
0164         source-type: local
0165         cmake-parameters:
0166         - "-DCMAKE_INSTALL_PREFIX=/usr"
0167         - "-DCMAKE_BUILD_TYPE=Release"
0168         - "-DMOD_GLAXNIMATE=ON"
0169         - "-DBUILD_TESTING=OFF"
0170         - "-DCMAKE_FIND_ROOT_PATH=/usr\\;$CRAFT_STAGE\\;/snap/kf5-5-110-qt-5-15-11-core22-sdk/current"
0171         - "-DKDE_INSTALL_PLUGINDIR=/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/plugins/"
0172         build-environment: &id005
0173         - *id001
0174         - *id002
0175         - *id003
0176         - *id004
0177         override-build: |
0178             craftctl default
0179             sed -i "${CRAFT_PART_INSTALL}/usr/share/applications/org.kde.kdenlive.desktop" -e 's|Icon=kdenlive$|Icon=${SNAP}/usr/share/icons/hicolor/scalable/apps/kdenlive.svg|'
0180             cd "${CRAFT_PART_INSTALL}/usr/share/icons/hicolor/scalable/apps"
0181             gzip -d -c kdenlive.svgz > kdenlive.svg
0182             if [ "$CRAFT_TARGET_ARCH" = amd64 ]; then
0183                 ln -sf ../libpsm1/libpsm_infinipath.so.1.16  $CRAFT_PART_INSTALL/usr/lib/$CRAFT_ARCH_TRIPLET/libpsm_infinipath.so.1
0184             fi
0185         prime:
0186         - -usr/lib/*/cmake/*
0187         - -usr/include/*
0188         - -usr/share/ECM/*
0189         - -usr/share/doc/*
0190         - -usr/share/man/*
0191         - -usr/share/icons/breeze-dark*
0192         - -usr/bin/X11
0193         - -usr/lib/gcc/$CRAFT_ARCH_TRIPLET/6.0.0
0194         - -usr/lib/aspell/*
0195     cleanup:
0196         after:
0197         - kdenlive
0198         plugin: nil
0199         override-prime: |
0200             set -eux
0201             #unused libs found by linter