1SUMMARY="Single player word finding game" 2DESCRIPTION="Tanglet is a single player word finding game based on Boggle���. The object \ 3of the game is to list as many words as you can before the time runs out. There are \ 4several timer modes that determine how much time you start with, and if you get extra \ 5time when you find a word. 6 7You can join letters horizontally, vertically, or diagonally in any direction to make a \ 8word, so as long as the letters are next to each other on the board. However, you can \ 9not reuse the same letter cells in a single word. Also, each word must be at least three \ 10letters on a normal board, and four letters on a large board. 11" 12HOMEPAGE="https://gottcode.org/tanglet/" 13COPYRIGHT="2009-2024 Graeme Gott" 14LICENSE="GNU GPL v3" 15REVISION="1" 16SOURCE_URI="https://gottcode.org/tanglet/tanglet-$portVersion.tar.bz2" 17CHECKSUM_SHA256="effdfdcf265436cc160d09c05f8712da416c00644e338817c13da8d0c6f1704b" 18SOURCE_DIR="tanglet-$portVersion" 19ADDITIONAL_FILES="tanglet.rdef.in" 20 21ARCHITECTURES="all !x86_gcc2" 22SECONDARY_ARCHITECTURES="x86" 23 24PROVIDES=" 25 tanglet$secondaryArchSuffix = $portVersion 26 app:Tanglet = $portVersion 27 " 28REQUIRES=" 29 haiku$secondaryArchSuffix 30 lib:libGL$secondaryArchSuffix 31 lib:libQt6Core$secondaryArchSuffix 32 lib:libQt6Gui$secondaryArchSuffix 33 lib:libQt6Widgets$secondaryArchSuffix 34 lib:libz$secondaryArchSuffix 35 " 36 37BUILD_REQUIRES=" 38 haiku${secondaryArchSuffix}_devel 39 devel:libQt6Core$secondaryArchSuffix 40 devel:libQt6Gui$secondaryArchSuffix 41 devel:libQt6UiTools$secondaryArchSuffix 42 devel:libQt6Widgets$secondaryArchSuffix 43 devel:libz$secondaryArchSuffix 44 " 45BUILD_PREREQUIRES=" 46 cmd:cmake 47 cmd:gcc$secondaryArchSuffix 48 cmd:ld$secondaryArchSuffix 49 cmd:linguist6$secondaryArchSuffix 50 cmd:make 51 " 52 53BUILD() 54{ 55 cmake -B build -S . \ 56 -DCMAKE_BUILD_TYPE='None' \ 57 -DCMAKE_INSTALL_BINDIR=$appsDir \ 58 -DCMAKE_INSTALL_DATADIR=$dataDir/Tanglet/ \ 59 -DCMAKE_INSTALL_MANDIR=$manDir 60 61 cmake --build build $jobArgs 62} 63 64INSTALL() 65{ 66 cmake --install build 67 mv $appsDir/tanglet $appsDir/Tanglet 68 rm -rf $dataDir/Tanglet/{metainfo,icons,applications} 69 70 local APP_SIGNATURE="application/x-vnd.gottcode-tanglet" 71 local MAJOR="`echo "$portVersion" | cut -d. -f1`" 72 local MIDDLE="`echo "$portVersion" | cut -d. -f2`" 73 local MINOR="`echo "$portVersion" | cut -d. -f3`" 74 local LONG_INFO="$SUMMARY" 75 sed \ 76 -e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \ 77 -e "s|@MAJOR@|$MAJOR|" \ 78 -e "s|@MIDDLE@|$MIDDLE|" \ 79 -e "s|@MINOR@|$MINOR|" \ 80 -e "s|@LONG_INFO@|$LONG_INFO|" \ 81 $portDir/additional-files/tanglet.rdef.in > $sourceDir/tanglet.rdef 82 83 addResourcesToBinaries $sourceDir/tanglet.rdef \ 84 $appsDir/Tanglet 85 86 mimeset -f $appsDir/Tanglet 87 88 addAppDeskbarSymlink $appsDir/Tanglet 89} 90