mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
Simsu: add recipe for 1.3.7 version
This commit is contained in:
75
games-board/simsu/simsu-1.3.7.recipe
Normal file
75
games-board/simsu/simsu-1.3.7.recipe
Normal file
@@ -0,0 +1,75 @@
|
||||
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="1"
|
||||
SOURCE_URI="https://gottcode.org/simsu/simsu-$portVersion-src.tar.bz2"
|
||||
SOURCE_DIR="simsu-$portVersion"
|
||||
CHECKSUM_SHA256="a3c56b6339fd314b198b7ec89d27f1919d4b480e7e0eae03980dda5fec31cd6a"
|
||||
ADDITIONAL_FILES="simsu.rdef.in"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
simsu = $portVersion
|
||||
app:Simsu = $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
|
||||
}
|
||||
Reference in New Issue
Block a user