aboutsummaryrefslogtreecommitdiff
path: root/package/doom-wad/doom-wad.mk
blob: f348fc2207e5d5a74d178987cf40db1ecb5a5f40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
################################################################################
#
# doom-wad
#
################################################################################

DOOM_WAD_VERSION = 1.9
DOOM_WAD_SOURCE = doom$(subst .,,$(DOOM_WAD_VERSION))s.zip
# Official server currently unavailable
# DOOM_WAD_SITE = ftp://ftp.idsoftware.com/idstuff/doom
DOOM_WAD_SITE = http://www.jbserver.com/downloads/games/doom/misc/shareware

define DOOM_WAD_EXTRACT_CMDS
	$(UNZIP) -p $(DOOM_WAD_DL_DIR)/$($(PKG)_SOURCE) 'DOOMS_19.[12]' > \
		$(@D)/doom-$(DOOM_WAD_VERSION).zip
	$(UNZIP) -d $(@D) $(@D)/doom-$(DOOM_WAD_VERSION).zip DOOM1.WAD
endef

define DOOM_WAD_INSTALL_TARGET_CMDS
	$(INSTALL) -m 0644 -D $(@D)/DOOM1.WAD \
		$(TARGET_DIR)/usr/share/games/doom/doom1.wad
endef

$(eval $(generic-package))