ifeq ($(URL),)
error URL not defined
endif

ifeq ($(SHA256),)
error SHA256 not defined
endif

PKG_DEPENDS += \
	@(PUBLIC_SRC_VFS) \
	@(PUBLIC_SRC_LIBC) \
	@(PUBLIC_SRC_INIT) \
	@(PUBLIC_SRC_LIBPNG) \
	@(PUBLIC_SRC_LIBSSL) \
	@(PUBLIC_SRC_LIBCRYPTO) \
	@(PUBLIC_SRC_MENU_VIEW) \
	@(PUBLIC_SRC_REPORT_ROM) \
	@(PUBLIC_SRC_VFS_LWIP) \
	@(PUBLIC_SRC_ZLIB) \
	_/raw/vbox_install_x86_64 \
	_/src/fetch_and_copy \

: $(TUP_CWD)/runtime.in |> ^ SED %o^ \
	sed \
		-e 's|@URL@|$(URL)|' \
		-e 's|@SHA256@|$(SHA256)|' \
		%f > %o |> %B

: runtime |> !collect_pkg_runtime |> {package}
