aboutsummaryrefslogtreecommitdiff
path: root/package/doom-wad/doom-wad.mk
diff options
context:
space:
mode:
authorGravatar Rodrigo Rebello <rprebello@gmail.com>2015-12-24 09:35:34 -0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-12-24 12:41:55 +0100
commit8b82f89965897e7aa65948095d0f6382f5b642ca (patch)
treeab8c47b75dcb2fb06ab8f0870d02fa4c94ab19ec /package/doom-wad/doom-wad.mk
parent8c6bf50828ee2c027a37ddad0f655ddb1c8b4fd0 (diff)
downloadbuildroot-8b82f89965897e7aa65948095d0f6382f5b642ca.tar.gz
buildroot-8b82f89965897e7aa65948095d0f6382f5b642ca.tar.bz2
doom-wad: bump to version 1.9
Also add a hash file. The extraction method had to be changed, since the WAD file for this version is not distributed as a stand-alone file, but comes inside a 2-part DOS self-extracting zip archive. Signed-off-by: Rodrigo Rebello <rprebello@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/doom-wad/doom-wad.mk')
-rw-r--r--package/doom-wad/doom-wad.mk14
1 files changed, 9 insertions, 5 deletions
diff --git a/package/doom-wad/doom-wad.mk b/package/doom-wad/doom-wad.mk
index 6f4f9daa0b..d3ac731bd5 100644
--- a/package/doom-wad/doom-wad.mk
+++ b/package/doom-wad/doom-wad.mk
@@ -4,16 +4,20 @@
#
################################################################################
-DOOM_WAD_VERSION = 1.8
-DOOM_WAD_SOURCE = doom-$(DOOM_WAD_VERSION).wad.gz
-DOOM_WAD_SITE = ftp://ftp.idsoftware.com/idstuff/doom
+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
- $(ZCAT) $(DL_DIR)/$($(PKG)_SOURCE) > $(@D)/doom1.wad
+ $(UNZIP) -p $(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 \
+ $(INSTALL) -m 0644 -D $(@D)/DOOM1.WAD \
$(TARGET_DIR)/usr/share/games/doom/doom1.wad
endef