[source] tar = "https://gitlab.freedesktop.org/wayland/wayland-protocols/-/releases/1.38/downloads/wayland-protocols-1.38.tar.xz" blake3 = "9426e0ae80dd696fa36cbe9e4b09ac9011bae37cbd70d6499d6db04ab126ec3e" [build] template = "custom" script = """ DYNAMIC_INIT python3 - <<'PY' "${COOKBOOK_SOURCE}/meson.build" from pathlib import Path import sys path = Path(sys.argv[1]) text = path.read_text() old = '''dep_scanner = dependency('wayland-scanner', version: '>=1.20.0', native: true, fallback: 'wayland') prog_scanner = find_program(dep_scanner.get_variable(pkgconfig: 'wayland_scanner', internal: 'wayland_scanner'))''' new = "prog_scanner = find_program('/usr/bin/wayland-scanner', native: true)" if old in text: text = text.replace(old, new) text = text.replace("if dep_scanner.version().version_compare('>=1.22.90')", "if true") path.write_text(text) PY cookbook_meson -Dtests=false """