ifndef CONFIG_OFFLINE

TARGET_NAME = soyuz

PKG_DEPENDS += \
	@(PUBLIC_SRC_VFS) \
	@(PUBLIC_SRC_LIBC) \
	@(PUBLIC_SRC_STDCXX) \
	_/src/dosbox \
	_/src/retro_frontend \
	_/raw/soyuz \

include_rules

: |> wget --quiet https://ce.gl/ports/dist/soyuz/%o |> soyuz.zip {zip}

: {zip} \
	|> unzip %f -d soyuz ; tar cf %o dosbox.conf soyuz ; rm -r soyuz \
	|> soyuz.tar {tar}

: {tar} |> !collect_raw |>
: runtime |> !collect_pkg_runtime |>
: |> !pkg |>

include &(RAW_RULES)

endif
