Files
haikuports/games-board/simsu/simsu-1.3.7.recipe
Gerasim Troeglazov 2349125de8 Simsu: fix provides
2018-09-05 08:25:26 +10:00

76 lines
2.1 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="2018 Graeme Gott"
LICENSE="GNU GPL v3"
REVISION="2"
SOURCE_URI="https://gottcode.org/simsu/simsu-$portVersion-src.tar.bz2"
CHECKSUM_SHA256="a3c56b6339fd314b198b7ec89d27f1919d4b480e7e0eae03980dda5fec31cd6a"
SOURCE_DIR="simsu-$portVersion"
ADDITIONAL_FILES="simsu.rdef.in"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
simsu$secondaryArchSuffix = $portVersion
app:Simsu$secondaryArchSuffix = $portVersion
"
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
cmd:make
cmd:qmake$secondaryArchSuffix >= 5
"
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
}