mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 23:18:58 +02:00
92 lines
2.5 KiB
Bash
92 lines
2.5 KiB
Bash
SUMMARY="A basic sudoku game"
|
|
DESCRIPTION="You can switch between filling in notes (pencil mode), or filling in \
|
|
answers (pen mode). To make it easier to see where to place numbers, you can highlight \
|
|
all instances of a number. You can also check your answers for correctness while playing. \
|
|
The game stores your current notes and answers, so that you can pick up where you left \
|
|
off the next time you play."
|
|
HOMEPAGE="https://gottcode.org/simsu/"
|
|
COPYRIGHT="2009-2023 Graeme Gott"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="1"
|
|
SOURCE_URI="https://gottcode.org/simsu/simsu-$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="7230293d7ff8d52b4a8d7f4e26638cff6e22e2a78edcc4ddaf7988da624fb37c"
|
|
SOURCE_DIR="simsu-$portVersion"
|
|
ADDITIONAL_FILES="
|
|
simsu.rdef.in
|
|
icons.zip
|
|
"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
simsu$secondaryArchSuffix = $portVersion
|
|
app:Simsu = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libQt6Core$secondaryArchSuffix
|
|
lib:libQt6Gui$secondaryArchSuffix
|
|
lib:libQt6Widgets$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
qt6_tools${secondaryArchSuffix}_devel
|
|
devel:libQt6Core$secondaryArchSuffix
|
|
devel:libQt6Gui$secondaryArchSuffix
|
|
devel:libQt6Widgets$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:unzip
|
|
"
|
|
|
|
PATCH()
|
|
{
|
|
unzip -o $sourceDir/../../additional-files/icons.zip -d $sourceDir/icons
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
cmake -B build -S . \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=$appsDir/Simsu \
|
|
-DCMAKE_INSTALL_BINDIR=$appsDir/Simsu \
|
|
-DCMAKE_INSTALL_DATADIR=$appsDir/Simsu/data \
|
|
-DCMAKE_INSTALL_MANDIR=$manDir
|
|
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install -C build
|
|
mv $appsDir/Simsu/simsu $appsDir/Simsu/Simsu
|
|
rm -rf $appsDir/Simsu/data/{metainfo,icons,applications}
|
|
|
|
local APP_SIGNATURE="application/x-vnd.gottcode-simsu"
|
|
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/simsu.rdef.in > $sourceDir/simsu.rdef
|
|
|
|
addResourcesToBinaries $sourceDir/simsu.rdef \
|
|
$appsDir/Simsu/Simsu
|
|
|
|
mimeset -f $appsDir/Simsu/Simsu
|
|
|
|
addAppDeskbarSymlink $appsDir/Simsu/Simsu Simsu
|
|
}
|