doom-wad: bump to version 1.9
authorRodrigo Rebello <rprebello@gmail.com>
Thu, 24 Dec 2015 11:35:34 +0000 (09:35 -0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 24 Dec 2015 11:41:55 +0000 (12:41 +0100)
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>
package/doom-wad/doom-wad.hash [new file with mode: 0644]
package/doom-wad/doom-wad.mk

diff --git a/package/doom-wad/doom-wad.hash b/package/doom-wad/doom-wad.hash
new file mode 100644 (file)
index 0000000..fa069c1
--- /dev/null
@@ -0,0 +1,2 @@
+# Locally computed
+sha256 cacf0142b31ca1af00796b4a0339e07992ac5f21bc3f81e7532fe1b5e1b486e6        doom19s.zip
index 6f4f9daa0b104269352f7b02f75137896ce81bf1..d3ac731bd5d313ff3e23fc8d2e5022950b31a9b2 100644 (file)
@@ -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