mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
* Simsu: Update to 1.4.3, remove icons.zip * Simsu: Remove unneeded data files * Simsu: Remove SOURCE_DIR * Simsu: Fix rm dir arrangement --------- Co-authored-by: Julius Enriquez <win8linux@github.com>
82 lines
2.3 KiB
Bash
82 lines
2.3 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="77c690f242a073c99cb6fa08f039d02988110b34e211f0d8c7f0fe0b9c0e41a2"
|
|
ADDITIONAL_FILES="simsu.rdef.in"
|
|
|
|
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
|
|
devel:libQt6Core$secondaryArchSuffix
|
|
devel:libQt6Gui$secondaryArchSuffix
|
|
devel:libQt6UiTools$secondaryArchSuffix
|
|
devel:libQt6Widgets$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:linguist6$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -B build -S . \
|
|
-DCMAKE_BUILD_TYPE='None' \
|
|
-DCMAKE_INSTALL_BINDIR=$appsDir \
|
|
-DCMAKE_INSTALL_DATADIR=$dataDir/Simsu/ \
|
|
-DCMAKE_INSTALL_MANDIR=$manDir
|
|
|
|
cmake --build build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cmake --install build
|
|
mv $appsDir/simsu $appsDir/Simsu
|
|
rm -rf $dataDir/Simsu/{applications,icons,metainfo}
|
|
|
|
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
|
|
|
|
mimeset -f $appsDir/Simsu
|
|
|
|
addAppDeskbarSymlink $appsDir/Simsu
|
|
}
|