1SUMMARY="2D platform shooter inspired by Duke Nukem 1"
2DESCRIPTION="Dave Gnukem is a retro-style 2D scrolling platform shooter \
3similar to, and inspired by, Duke Nukem 1.
4
5The year is \$CURRENTYEAR+8.
6An evil genius, Dr Proetton, has been hired by the CIA \
7to infect the world's computers with a virus called SystemD, crippling them.
8Only you can stop him. You must find the floppy disk with the \
9Devuan Antivirus on it, and install it on the master computer, \
10which is hidden in Vault7.
11TL;DR: Shoot anything that moves!
12
13Controls:
14Left/right -> Move left/right
15Ctrl -> Jump
16Alt -> Shoot
17Up -> Action key (open doors, use teleporters, etc.)
18Escape -> Open the menu
19"
20HOMEPAGE="https://djoffe.com/gnukem/"
21REVISION="1"
22COPYRIGHT="1998-2019 David Joffe"
23LICENSE="MIT
24	   GNU GPL v3
25	   CC-BY-3.0"
26SOURCE_DIR="dave_gnukem-$portVersion"
27SOURCE_URI="https://github.com/davidjoffe/dave_gnukem/archive/$portVersion.tar.gz"
28CHECKSUM_SHA256="b4180e94855fe1ad5eb29c4ec9c249f8e23fbd7a602f5c821dfe68c23325ad0d"
29SOURCE_FILENAME="dave_gnukem-$portVersion.tar.gz"
30SOURCE_URI_2="https://github.com/davidjoffe/gnukem_data/archive/v$portVersion.tar.gz"
31CHECKSUM_SHA256_2="d90c893acb98c9192847a1feeb74d159e7f3fda0fecfe6b70fb72b1a18ac593c"
32SOURCE_FILENAME_2="gnukem_data-v$portVersion.tar.gz"
33PATCHES="dave_gnukem-$portVersion.patchset"
34
35ARCHITECTURES="all !x86_gcc2"
36SECONDARY_ARCHITECTURES="x86"
37
38PROVIDES="
39	dave_gnukem$secondaryArchSuffix = $portVersion
40	app:DaveGnukem
41	"
42
43REQUIRES="
44	haiku$secondaryArchSuffix
45	lib:libSDL_1.2$secondaryArchSuffix
46	lib:libSDL_mixer_1.2$secondaryArchSuffix
47	"
48
49BUILD_REQUIRES="
50	haiku${secondaryArchSuffix}_devel
51	devel:libSDL_1.2$secondaryArchSuffix
52	devel:libSDL_mixer_1.2$secondaryArchSuffix
53	"
54
55BUILD_PREREQUIRES="
56	cmd:gcc$secondaryArchSuffix
57	cmd:make
58	"
59
60BUILD()
61{
62	make $jobArgs
63}
64
65INSTALL()
66{
67	#Doesn't have make install, so installation is done manually here.
68	mkdir -p $appsDir/Dave_Gnukem
69	cp davegnukem $appsDir/Dave_Gnukem
70	cp -r $sourceDir2/gnukem_data-$portVersion $appsDir/Dave_Gnukem/data
71	addAppDeskbarSymlink $appsDir/Dave_Gnukem/davegnukem "Dave Gnukem"
72}
73