mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 15:08:57 +02:00
79 lines
2.1 KiB
Bash
79 lines
2.1 KiB
Bash
SUMMARY="A 2D flying saucer racing game"
|
|
DESCRIPTION="Antigravitaattori is a local multiplayer racing game. \
|
|
You control UFOs that are hovering along a randomly generated track trying to \
|
|
reach the finish line."
|
|
HOMEPAGE="https://github.com/callaa/antigravitaattori/"
|
|
COPYRIGHT="2015 Riku Salminen \
|
|
Calle Laakkonen"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="3"
|
|
srcGitRev="099c56580e2c7e61719200e57e01a1c42fb71c0f"
|
|
SOURCE_URI="https://github.com/callaa/antigravitaattori/archive/${srcGitRev}.zip"
|
|
SOURCE_DIR="antigravitaattori-${srcGitRev}"
|
|
CHECKSUM_SHA256="3d8236b04f523bfb2b491ff45a28e4dcb03390a71ac45c87fbc7c07a150dc968"
|
|
ADDITIONAL_FILES="antigravitaattori.rdef.in"
|
|
|
|
ARCHITECTURES="all"
|
|
|
|
PROVIDES="
|
|
antigravitaattori$secondaryArchSuffix
|
|
app:Antigravitaattori
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libalut$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libGLU$secondaryArchSuffix
|
|
lib:libopenal$secondaryArchSuffix
|
|
lib:libpng16$secondaryArchSuffix
|
|
lib:libSDL_1.2$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libalut$secondaryArchSuffix
|
|
devel:libGLU$secondaryArchSuffix
|
|
devel:libopenal$secondaryArchSuffix
|
|
devel:libpng16$secondaryArchSuffix
|
|
devel:libSDL_1.2$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:autoconf
|
|
cmd:autoupdate
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
autoupdate
|
|
autoconf
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
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`"
|
|
local LONG_INFO="$SUMMARY"
|
|
|
|
sed \
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
-e "s|@MINOR@|$MINOR|" \
|
|
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
|
$portDir/additional-files/antigravitaattori.rdef.in > $portDir/antigravitaattori.rdef
|
|
|
|
make install
|
|
mkdir $appsDir
|
|
mv $binDir/antigrav $appsDir/Antigravitaattori
|
|
addResourcesToBinaries $portDir/antigravitaattori.rdef $appsDir/Antigravitaattori
|
|
addAppDeskbarSymlink $appsDir/Antigravitaattori
|
|
}
|
|
|