Files
haikuports/games-arcade/airstrike/airstrike-0.99.6.recipe
TheZeldakatze ae81efdced airstrike: new recipe (#7044)
* airstrike: new recipe

* airstrike: remove trailing whitespace
2022-07-23 07:29:22 +02:00

75 lines
2.0 KiB
Bash

SUMMARY="2D dogfighting game"
DESCRIPTION="Airstrike is a 2d dogfighting game which can be played by one or two persons.\
Features include alpha blended graphics and accurate physics."
HOMEPAGE="http://icculus.org/airstrike/"
COPYRIGHT="2001-2003 Ulf Ekström and contributors"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://github.com/tommybee/Airstrike/archive/ddb52b072c5a1af3bd51088526575290a8c9d27b.zip"
CHECKSUM_SHA256="534aab3a7dcb5d075e4de861bfa936d242b3badee33b56bb975d15f542fc3681"
SOURCE_DIR="Airstrike-ddb52b072c5a1af3bd51088526575290a8c9d27b"
PATCHES="airstrike-$portVersion.patchset"
ADDITIONAL_FILES="airstrike.rdef.in"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
airstrike$secondaryArchSuffix = $portVersion
app:Airstrike = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libSDL_1.2$secondaryArchSuffix
lib:libSDL_mixer_1.2$secondaryArchSuffix
lib:libSDL_image_1.2$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libSDL_1.2$secondaryArchSuffix
devel:libSDL_mixer_1.2$secondaryArchSuffix
devel:libSDL_image_1.2$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:find
cmd:gcc$secondaryArchSuffix
cmd:make
"
BUILD()
{
make clean
make $jobArgs airstrike-sound
}
INSTALL()
{
# prepare the rdef file
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="`echo "$portVersion" | cut -d. -f3 | cut -dp -f1`"
local SHORT_INFO="$SUMMARY"
local LONG_INFO="$SUMMARY"
sed \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
-e "s|@SHORT_INFO@|$SHORT_INFO|" \
-e "s|@LONG_INFO@|$LONG_INFO|" \
$portDir/additional-files/airstrike.rdef.in > $portDir/airstrike.rdef
mkdir -p $appsDir
mkdir -p $dataDir
cp -r data $dataDir/airstrike
cp airstrikerc $dataDir/airstrike/
cp airstrike $appsDir/Airstrike
addResourcesToBinaries $portDir/airstrike.rdef $appsDir/Airstrike
addAppDeskbarSymlink $appsDir/Airstrike
}