SUMMARY="Top-down maze game" DESCRIPTION="CuteMaze is a top-down game in which mazes are randomly generated using one \ of a choice of several different algorithms. You move your character through the maze \ while hunting for targets. The game is won once all of these targets have been picked up. Features: * Showing the amount of time and steps it has taken to play the maze (optional) * “Bread crumb” trail to show you where you've already been (optional) * Flag system which allows you to mark and later un-mark any square on the board * Hints that direct you to the closest target * Zooming out to see more of the maze * SVG themes (two themes come with the game) " HOMEPAGE="https://gottcode.org/cutemaze/" COPYRIGHT="2007-2024 Graeme Gott" LICENSE="GNU GPL v3" REVISION="1" SOURCE_URI="https://gottcode.org/cutemaze/cutemaze-$portVersion.tar.bz2" CHECKSUM_SHA256="5af6de035ce0686c791f0e49798ad85fbd8c270dcebb556701b07a47a634469c" ADDITIONAL_FILES="cutemaze.rdef.in" ARCHITECTURES="all !x86_gcc2" SECONDARY_ARCHITECTURES="x86" PROVIDES=" cutemaze$secondaryArchSuffix = $portVersion app:CuteMaze = $portVersion " REQUIRES=" haiku$secondaryArchSuffix lib:libGL$secondaryArchSuffix lib:libQt6Core$secondaryArchSuffix lib:libQt6Gui$secondaryArchSuffix lib:libQt6Svg$secondaryArchSuffix lib:libQt6Widgets$secondaryArchSuffix " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:libQt6Core$secondaryArchSuffix devel:libQt6Gui$secondaryArchSuffix devel:libQt6Svg$secondaryArchSuffix devel:libQt6UiTools$secondaryArchSuffix devel:libQt6Widgets$secondaryArchSuffix " BUILD_PREREQUIRES=" cmd:cmake cmd:gcc$secondaryArchSuffix cmd:ld$secondaryArchSuffix cmd:linguist6$secondaryArchSuffix cmd:make " BUILD() { cmake -B build -S . \ -DCMAKE_BUILD_TYPE='None' \ -DCMAKE_INSTALL_BINDIR=$appsDir \ -DCMAKE_INSTALL_DATADIR=$dataDir/CuteMaze/ \ -DCMAKE_INSTALL_MANDIR=$manDir cmake --build build $jobArgs } INSTALL() { cmake --install build mv $appsDir/cutemaze $appsDir/CuteMaze rm -rf $dataDir/CuteMaze/{applications,icons,metainfo} local APP_SIGNATURE="application/x-vnd.gottcode-cutemaze" 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|@APP_SIGNATURE@|$APP_SIGNATURE|" \ -e "s|@MAJOR@|$MAJOR|" \ -e "s|@MIDDLE@|$MIDDLE|" \ -e "s|@MINOR@|$MINOR|" \ -e "s|@LONG_INFO@|$LONG_INFO|" \ $portDir/additional-files/cutemaze.rdef.in > $sourceDir/cutemaze.rdef addResourcesToBinaries $sourceDir/cutemaze.rdef \ $appsDir/CuteMaze mimeset -f $appsDir/CuteMaze addAppDeskbarSymlink $appsDir/CuteMaze }