mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
59 lines
1.8 KiB
Bash
59 lines
1.8 KiB
Bash
SUMMARY="Old-school FPS game for the Doom engine"
|
|
DESCRIPTION="Hacx is an action filled Doom Engine game commercially released in 1997 then re-released in 2000 as freeware.
|
|
The story is set in the near future, where you'll find yourself engrossed in an international blastfest.
|
|
Wield weapons of mass destruction from China to Paris to combat a devilish artificial intelligence and its hordes of loyal fanatics.
|
|
Can you handle it, hacker?
|
|
|
|
This package contains the Hacx game data along with a script that will look for compatible \
|
|
Doom source ports installed. If only one is found the game will run directly, \
|
|
if there are more installed a pop-up to select the preferred one will be shown."
|
|
HOMEPAGE="http://drnostromo.com/hacx/"
|
|
COPYRIGHT="1997 - 2010 Banjo Software Inc. & contributors"
|
|
LICENSE="Public Domain"
|
|
REVISION="2"
|
|
SOURCE_URI="http://drnostromo.com/hacx/files/hacx12.zip"
|
|
CHECKSUM_SHA256="70d25e8f4b48906759db32213927859a99b3b045d3291d468357b225d64cbf8b"
|
|
SOURCE_DIR=""
|
|
ADDITIONAL_FILES="
|
|
hacx.rdef.in
|
|
hacx.sh
|
|
"
|
|
|
|
ARCHITECTURES="any"
|
|
DISABLE_SOURCE_PACKAGE="yes"
|
|
|
|
PROVIDES="
|
|
hacx = $portVersion
|
|
"
|
|
REQUIRES="
|
|
engine:doom
|
|
"
|
|
|
|
INSTALL()
|
|
{
|
|
# Pack game data
|
|
mkdir -p $dataDir/doomdata && cp HACX.WAD $dataDir/doomdata/hacx.wad
|
|
|
|
# Pack docs
|
|
mkdir -p $docDir && cp HACX.TXT $docDir/hacx.txt
|
|
|
|
# Pack script
|
|
mkdir -p $appsDir/Hacx && cp $portDir/additional-files/hacx.sh $appsDir/Hacx
|
|
chmod +x $appsDir/Hacx/hacx.sh
|
|
|
|
# Generate the rdef
|
|
local MAJOR="`echo "$portVersion" | cut -b1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -b3`"
|
|
local LONG_INFO="$SUMMARY"
|
|
sed \
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
|
$portDir/additional-files/hacx.rdef.in > hacx.rdef
|
|
|
|
# Iconize & link script
|
|
rc hacx.rdef
|
|
resattr -o $appsDir/Hacx/hacx.sh hacx.rsrc
|
|
addAppDeskbarSymlink $appsDir/Hacx/hacx.sh "Hacx: Twitch 'n Kill"
|
|
}
|