1SUMMARY="A tetris clone based on Qt6" 2DESCRIPTION="Gottet is a clean, simple falling blocks game. \ 3Use the arrow keys to rotate and position each piece as it \ 4falls. Fill a whole row to clear it. Unlimited levels, with \ 5progressively faster speeds." 6HOMEPAGE="https://gottcode.org/gottet/" 7COPYRIGHT="2009-2020 Graeme Gott" 8LICENSE="GNU GPL v3" 9REVISION="1" 10SOURCE_URI="https://gottcode.org/gottet/gottet-$portVersion.tar.bz2" 11CHECKSUM_SHA256="0fafb1f4e43a91bfc86c6948af986605d458ec618476b803b40d5d0841d43f1a" 12SOURCE_DIR="gottet-$portVersion" 13ADDITIONAL_FILES="gottet.rdef.in" 14 15ARCHITECTURES="all !x86_gcc2" 16SECONDARY_ARCHITECTURES="x86" 17 18PROVIDES=" 19 gottet$secondaryArchSuffix = $portVersion 20 app:Gottet$secondaryArchSuffix = $portVersion 21 " 22REQUIRES=" 23 haiku$secondaryArchSuffix 24 lib:libGL$secondaryArchSuffix 25 lib:libQt6Core$secondaryArchSuffix 26 lib:libQt6Gui$secondaryArchSuffix 27 lib:libQt6Widgets$secondaryArchSuffix 28 " 29 30BUILD_REQUIRES=" 31 haiku${secondaryArchSuffix}_devel 32 devel:libQt6Core$secondaryArchSuffix 33 devel:libQt6Gui$secondaryArchSuffix 34 devel:libQt6UiTools$secondaryArchSuffix 35 devel:libQt6Widgets$secondaryArchSuffix 36 " 37BUILD_PREREQUIRES=" 38 cmd:cmake 39 cmd:gcc$secondaryArchSuffix 40 cmd:ld$secondaryArchSuffix 41 cmd:linguist6$secondaryArchSuffix 42 cmd:make 43 " 44 45BUILD() 46{ 47 cmake -B build -S . \ 48 -DCMAKE_BUILD_TYPE='None' \ 49 -Wno-dev \ 50 -DCMAKE_INSTALL_BINDIR=$appsDir \ 51 -DCMAKE_INSTALL_DATADIR=$dataDir/Gottet \ 52 -DCMAKE_INSTALL_MANDIR=$manDir 53 cmake --build build $jobArgs 54} 55 56INSTALL() 57{ 58 cmake --install build 59 60 # Remove unnecessary data files 61 rm -r $dataDir/Gottet/applications 62 rm -r $dataDir/Gottet/icons 63 rm -r $dataDir/Gottet/metainfo 64 65 local APP_SIGNATURE="application/x-vnd.gottcode-gottet" 66 local MAJOR="`echo "$portVersion" | cut -d. -f1`" 67 local MIDDLE="`echo "$portVersion" | cut -d. -f2`" 68 local MINOR="`echo "$portVersion" | cut -d. -f3`" 69 local LONG_INFO="$SUMMARY" 70 sed \ 71 -e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \ 72 -e "s|@MAJOR@|$MAJOR|" \ 73 -e "s|@MIDDLE@|$MIDDLE|" \ 74 -e "s|@MINOR@|$MINOR|" \ 75 -e "s|@LONG_INFO@|$LONG_INFO|" \ 76 $portDir/additional-files/gottet.rdef.in > $sourceDir/gottet.rdef 77 78 mv $appsDir/gottet $appsDir/Gottet 79 addResourcesToBinaries $sourceDir/gottet.rdef \ 80 $appsDir/Gottet 81 82 mimeset -f $appsDir/Gottet 83 84 addAppDeskbarSymlink $appsDir/Gottet 85} 86