#TODO maybe incomplete script, see https://invent.kde.org/multimedia/kdenlive/-/blob/master/dev-docs/build.md#build-and-install-the-projects
[source]
git = "https://invent.kde.org/multimedia/kdenlive"
rev = "da6ecdfbba7aadf88572ac5f87aeb88ff2d80f57"
[build]
template = "custom"
dependencies = [
    "mlt",
    "ffmpeg6",
    "qt5-declarative",
    "qt5-tools",
    "qt5-multimedia",
    "qt5-svg",
    "qt5-quickcontrols",
    "qt5-quickcontrols2",
    "qt5-networkauth",
    "kf5-archive",
    "kf5-bookmarks",
    "kf5-codecs",
    "kf5-config",
    "kf5-configwidgets",
    "kf5-coreaddons",
    "kf5-crash",
    "kf5-dbusaddons",
    "kf5-declarative",
    "kf5-filemetadata",
    "kf5-guiaddons",
    "kf5-iconthemes",
    "kf5-init",
    "kf5-io",
    "kf5-newstuff",
    "kf5-notifications",
    "kf5-notifyconfig",
    "kf5-purpose",
    "kf5-textwidgets",
    "kf5-widgetaddons",
    "kf5-xmlgui",
    "breeze-icons",
]
script = """
COOKBOOK_CONFIGURE="cmake"
COOKBOOK_CONFIGURE_FLAGS=(
    -DCMAKE_BUILD_TYPE=Release
    -DCMAKE_CROSSCOMPILING=True
    -DCMAKE_EXE_LINKER_FLAGS="-static"
    -DCMAKE_INSTALL_PREFIX="/"
    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
    -DCMAKE_SYSTEM_NAME=Generic
    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
    -DCMAKE_VERBOSE_MAKEFILE=On
"${COOKBOOK_SOURCE}"
)
cookbook_configure
"""
