aboutsummaryrefslogtreecommitdiffstats
path: root/package/doom-wad/doom-wad.mk
blob: ae5dcef3de4bd8e50ceed39f0cfd19e1352bcf74 (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.8
DOOM_WAD_SOURCE = doom-$(DOOM_WAD_VERSION).wad.gz
DOOM_WAD_SITE = ftp://ftp.idsoftware.com/idstuff/doom/

define DOOM_WAD_EXTRACT_CMDS
	$(ZCAT) $(DL_DIR)/$($(PKG)_SOURCE) > $(@D)/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

define DOOM_WAD_UNINSTALL_TARGET_CMDS
	rm -f $(TARGET_DIR)/usr/share/games/doom/doom1.wad
endef

$(eval $(generic-package))