0
0
Fork 0
haikuports/games-board/simsu/simsu-1.4.0.recipe

86 lines
2.3 KiB
Bash
Raw Permalink Normal View History

2018-08-23 04:14:52 +00:00
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/"
2021-09-27 05:07:28 +00:00
COPYRIGHT="2009-2021 Graeme Gott"
2018-08-23 04:14:52 +00:00
LICENSE="GNU GPL v3"
2020-05-03 03:47:02 +00:00
REVISION="1"
2018-08-23 04:14:52 +00:00
SOURCE_URI="https://gottcode.org/simsu/simsu-$portVersion-src.tar.bz2"
2021-09-27 05:07:28 +00:00
CHECKSUM_SHA256="6db0c004de67c122ac67f34cc6c1a68cd78be02034eceeab922848f87cb85e87"
2018-09-03 09:03:54 +00:00
SOURCE_DIR="simsu-$portVersion"
2021-09-27 05:07:28 +00:00
ADDITIONAL_FILES="
simsu.rdef.in
icons.zip
"
2018-08-23 04:14:52 +00:00
ARCHITECTURES="all !x86_gcc2"
2018-08-23 04:14:52 +00:00
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
2018-09-04 22:25:26 +00:00
simsu$secondaryArchSuffix = $portVersion
2021-09-27 05:07:28 +00:00
app:Simsu = $portVersion
2018-08-23 04:14:52 +00:00
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Widgets$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libQt5Core$secondaryArchSuffix
devel:libQt5Gui$secondaryArchSuffix
devel:libQt5Widgets$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
2020-05-03 03:47:02 +00:00
cmd:lrelease$secondaryArchSuffix >= 5
2018-08-23 04:14:52 +00:00
cmd:make
cmd:qmake$secondaryArchSuffix >= 5
2021-09-27 05:07:28 +00:00
cmd:unzip
2018-08-23 04:14:52 +00:00
"
2021-09-27 05:07:28 +00:00
PATCH()
{
unzip -o $sourceDir/../../additional-files/icons.zip -d $sourceDir/icons
}
2018-08-23 04:14:52 +00:00
BUILD()
{
qmake
make $jobArgs
}
INSTALL()
{
mkdir -p $appsDir/Simsu/translations
cp simsu $appsDir/Simsu/Simsu
cp -Rf translations/*.qm $appsDir/Simsu/translations
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
}