#TODO maybe incomplete script, see https://dev-docs.kicad.org/en/build/linux/
#TODO maybe missing dependencies, see https://dev-docs.kicad.org/en/build/getting-started/
[source]
git = "https://gitlab.com/kicad/code/kicad"
rev = "942661fc10e172febf9d9990de2471d4b1020618"
[build]
template = "custom"
dependencies = [
    "wxwidgets-gtk3",
    "cairo",
    "boost",
    "glew",
    "zlib",
    "freeglut",
    "glm",
    "curl",
    "ngspice",
]
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
"""
