1SUMMARY="Tetromino jigsaw puzzle game" 2DESCRIPTION="Tetzle is a jigsaw puzzle game that uses tetrominoes \ 3for the pieces. Any image can be imported and used to create \ 4puzzles with a wide range of sizes. Games are saved \ 5automatically, and you can select between currently in progress \ 6games." 7HOMEPAGE="https://gottcode.org/tetzle/" 8COPYRIGHT="2008-2024 Graeme Gott" 9LICENSE="GNU GPL v3" 10REVISION="1" 11SOURCE_URI="https://gottcode.org/tetzle/tetzle-$portVersion.tar.bz2" 12CHECKSUM_SHA256="e70b15eb736d14f8aee60e0618599973c6b1beac22e8ee996bb880f332265532" 13SOURCE_DIR="tetzle-$portVersion" 14ADDITIONAL_FILES="tetzle.rdef.in" 15 16ARCHITECTURES="all !x86_gcc2" 17SECONDARY_ARCHITECTURES="x86" 18 19PROVIDES=" 20 tetzle$secondaryArchSuffix = $portVersion 21 app:Tetzle = $portVersion 22 " 23REQUIRES=" 24 haiku$secondaryArchSuffix 25 lib:libGL$secondaryArchSuffix 26 lib:libQt6Core$secondaryArchSuffix 27 lib:libQt6Gui$secondaryArchSuffix 28 lib:libQt6Widgets$secondaryArchSuffix 29 " 30 31BUILD_REQUIRES=" 32 haiku${secondaryArchSuffix}_devel 33 devel:libQt6Core$secondaryArchSuffix 34 devel:libQt6Gui$secondaryArchSuffix 35 devel:libQt6UiTools$secondaryArchSuffix 36 devel:libQt6Widgets$secondaryArchSuffix 37 " 38BUILD_PREREQUIRES=" 39 cmd:cmake 40 cmd:gcc$secondaryArchSuffix 41 cmd:ld$secondaryArchSuffix 42 cmd:linguist6$secondaryArchSuffix 43 cmd:make 44 " 45 46BUILD() 47{ 48 cmake -B build -S . \ 49 -DCMAKE_BUILD_TYPE='None' \ 50 -Wno-dev \ 51 -DCMAKE_INSTALL_BINDIR=$appsDir \ 52 -DCMAKE_INSTALL_DATADIR=$dataDir/Tetzle \ 53 -DCMAKE_INSTALL_MANDIR=$manDir 54 cmake --build build $jobArgs 55} 56 57INSTALL() 58{ 59 cmake --install build 60 61 # Remove unnecessary data files 62 rm -r $dataDir/Tetzle/applications 63 rm -r $dataDir/Tetzle/icons 64 rm -r $dataDir/Tetzle/metainfo 65 66 local APP_SIGNATURE="application/x-vnd.gottcode-tetzle" 67 local MAJOR="`echo "$portVersion" | cut -d. -f1`" 68 local MIDDLE="`echo "$portVersion" | cut -d. -f2`" 69 local MINOR="`echo "$portVersion" | cut -d. -f3`" 70 local LONG_INFO="$SUMMARY" 71 sed \ 72 -e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \ 73 -e "s|@MAJOR@|$MAJOR|" \ 74 -e "s|@MIDDLE@|$MIDDLE|" \ 75 -e "s|@MINOR@|$MINOR|" \ 76 -e "s|@LONG_INFO@|$LONG_INFO|" \ 77 $portDir/additional-files/tetzle.rdef.in > $sourceDir/tetzle.rdef 78 79 mv $appsDir/tetzle $appsDir/Tetzle 80 addResourcesToBinaries $sourceDir/tetzle.rdef \ 81 $appsDir/Tetzle 82 83 mimeset -f $appsDir/Tetzle 84 85 addAppDeskbarSymlink $appsDir/Tetzle 86} 87