ifndef CONFIG_NO_NETWORK

TARGET_NAME = streemerz
RAW_VERSION = 02
include_rules

: |> wget --quiet https://www.fauxgame.com/downloads/%o \
	|> streemerz-v02.zip {zip}

: {zip} |> unzip %f \
		README.txt streemerz-v02.nes -d $(RAW_DIR) \
	|> $(RAW_DIR)/README.txt $(RAW_DIR)/streemerz-v02.nes {unzipped}

PKG_DEPENDS += \
	@(PUBLIC_SRC_VFS) \
	@(PUBLIC_SRC_LIBC) \
	_/src/fceumm \
	_/src/retro_frontend \
	_/raw/$(TARGET_NAME) \

: runtime |> !collect_pkg_runtime |>

include &(RAW_RULES)

endif
