ifndef CONFIG_NO_NETWORK

TARGET_NAME = quake_dopa
RAW_VERSION = 2016-06-22
include_rules

: |> wget --quiet -O %o cdn.bethsoft.com/quake/dopa.rar |> dopa.rar

DOPA_FILES = \
	config.cfg \
	dopa_readme.txt \
	pak0.pak \

: dopa.rar |> unrar x %f $(DOPA_FILES); tar cf %o $(DOPA_FILES); rm $(DOPA_FILES) |> $(RAW_DIR)/quake_dopa.tar
include &(RAW_RULES)

PKG_DEPENDS += \
	@(PUBLIC_SRC_VFS) \
	@(PUBLIC_SRC_LIBC) \
	_/src/tyrquake \
	_/src/retro_frontend \
	ehmry/raw/quake_shareware/1.06 \
	_/raw/$(RAW_NAME) \

: runtime |> !collect_pkg_runtime |>
include &(PKG_RULES)

endif
