mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
86 lines
2.6 KiB
Bash
86 lines
2.6 KiB
Bash
SUMMARY="A 2D side-scroller platform video game"
|
|
DESCRIPTION="OpenClaw is a multiplatform C++ reimplementation of original \
|
|
Captain Claw published by Monolith Productions in 1997 about the \
|
|
anthropomorphic pirate cat Captain Nathaniel Joseph Claw, \
|
|
who sets on a quest to find an ancient amulet while fighting \
|
|
enemies and solving puzzles. For this reimplementation \
|
|
the whole codebase was written from scratch. \
|
|
The game uses assets from the original game archive (CLAW.REZ)"
|
|
HOMEPAGE="https://github.com/pjasicek/OpenClaw"
|
|
COPYRIGHT="2009 Peter \"Corsix\" Cawley
|
|
2012 Michael L. McShaffry and David Graham"
|
|
LICENSE="MIT
|
|
GNU GPL v3"
|
|
REVISION="1"
|
|
srcGitRev="150f7edb7542f3f877b42afc948cc24ea9a46c48"
|
|
SOURCE_URI="https://github.com/pjasicek/OpenClaw/archive/$srcGitRev.tar.gz"
|
|
CHECKSUM_SHA256="9521811f572ca6c61288628cc32ff86f9c7a455afa09387232282f936a531845"
|
|
SOURCE_FILENAME="openclaw-$portVersion-$srcGitRev.tar.gz"
|
|
SOURCE_DIR="OpenClaw-$srcGitRev"
|
|
SOURCE_URI_2="https://github.com/pjasicek/OpenClaw/releases/download/v0.0/openclaw_1.0-1.deb#noarchive"
|
|
CHECKSUM_SHA256_2="0e5cde1cb6f3113afb9255f89816f6716d33f03e305ea8a75853d0c5abdd58b1"
|
|
PATCHES="openclaw-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64"
|
|
SECONDARY_ARCHITECTURES="?x86"
|
|
DISABLE_SOURCE_PACKAGE="yes"
|
|
|
|
PROVIDES="
|
|
openclaw$secondaryArchSuffix = $portVersion
|
|
app:openclaw = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libsdl2_2.0$secondaryArchSuffix
|
|
lib:libsdl2_mixer_2.0$secondaryArchSuffix
|
|
lib:libsdl2_ttf$secondaryArchSuffix
|
|
lib:libsdl2_image_2.0$secondaryArchSuffix
|
|
lib:libsdl2_gfx$secondaryArchSuffix
|
|
lib:libtinyxml$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libsdl2_2.0$secondaryArchSuffix
|
|
devel:libsdl2_mixer_2.0$secondaryArchSuffix
|
|
devel:libsdl2_ttf$secondaryArchSuffix
|
|
devel:libsdl2_image_2.0$secondaryArchSuffix
|
|
devel:libsdl2_gfx$secondaryArchSuffix
|
|
devel:libtinyxml$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:ar
|
|
cmd:cmake
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:tar
|
|
cmd:xz
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
mkdir -p build
|
|
cd build
|
|
cmake ..
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $appsDir
|
|
cp Build_Release/openclaw $appsDir/
|
|
|
|
mkdir -p $dataDir/openclaw/
|
|
cp Build_Release/clacon.ttf $dataDir/openclaw/
|
|
cp Build_Release/ASSETS.ZIP $dataDir/openclaw/
|
|
cp Build_Release/console02.tga $dataDir/openclaw/
|
|
cp Build_Release/SAVES.XML $dataDir/openclaw/
|
|
cp Build_Release/config.xml $dataDir/openclaw/
|
|
|
|
ar x $sourceDir2/openclaw_1.0-1.deb
|
|
tar xf data.tar.xz ./usr/share/openclaw/CLAW.REZ
|
|
mv ./usr/share/openclaw/CLAW.REZ $dataDir/openclaw/
|
|
|
|
addAppDeskbarSymlink $appsDir/openclaw OpenClaw
|
|
}
|