mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
Simsu: add recipe for 1.3.7 version
This commit is contained in:
34
games-board/simsu/additional-files/simsu.rdef.in
Normal file
34
games-board/simsu/additional-files/simsu.rdef.in
Normal file
@@ -0,0 +1,34 @@
|
||||
resource app_flags B_MULTIPLE_LAUNCH;
|
||||
|
||||
resource app_version {
|
||||
major = @MAJOR@,
|
||||
middle = @MIDDLE@,
|
||||
minor = @MINOR@,
|
||||
|
||||
variety = B_APPV_FINAL,
|
||||
internal = 0,
|
||||
|
||||
short_info = "Simsu",
|
||||
long_info = "@LONG_INFO@"
|
||||
};
|
||||
|
||||
resource app_signature "@APP_SIGNATURE@";
|
||||
|
||||
resource vector_icon array {
|
||||
$"6E6369660304014A0501020006023A4C543D2C4DBDB2DB3AADC84B9323481E3C"
|
||||
$"00FFFFFFFEFBFA95090804485E6052514B48480A04244836265C34485C0A045C"
|
||||
$"3436262448485C0608BAAA30313A34412A41B6EE41B7083C3556403B362E4D39"
|
||||
$"350608BAAA2A3D41464E2F4EB8EC4EB90644474F4D42493B55404800043CC296"
|
||||
$"3CC296BCCFC18BBB37C37B36C2AFBAABC447BC694EBB1D4FBDB44DBB50C37BBD"
|
||||
$"A8C323BB50C37B0404FEBAEABEE6B8C7BE01B8C7BE01B985BCA9BB9DBCDCBAFA"
|
||||
$"BDDCBC4F36B9DFBC1CBA78BB11B9DFBC1C0804C0B0BD0FC2BDB93FBF33BABCC2"
|
||||
$"92BC2D0405FA03C692C084C404BFA1C313C13DC313C13DC412C0F6C512C30450"
|
||||
$"C1D9C404C42EC230C24BC230C32EC230C24B0E0A000100000A01010110011783"
|
||||
$"00040A020102000A010103000A010103023C00000000000000003C0EA0444000"
|
||||
$"49CDB60A010103023C00000000000000003C0EA046E000484DB60A010104000A"
|
||||
$"010104023D06EB0000000000003CBCA149E6EB48DBCA0A010104023C98370000"
|
||||
$"000000003C50D746F06E4A0A860A010104023C98370000000000003C50D74918"
|
||||
$"37462A1A0A01010630401E01178200040A010105123F94AF0000000000003F9A"
|
||||
$"9C42FECAC90A9801178200040A01010730213E01178200040A010108123FACEA"
|
||||
$"0000000000003F562DC67F3ABFC6FE0117820004"
|
||||
};
|
||||
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