diff --git a/games-simulation/singularity/additional-files/singularity.iom b/games-simulation/singularity/additional-files/singularity.iom new file mode 100644 index 00000000000..223ac330af1 Binary files /dev/null and b/games-simulation/singularity/additional-files/singularity.iom differ diff --git a/games-simulation/singularity/additional-files/singularity.rdef.in b/games-simulation/singularity/additional-files/singularity.rdef.in new file mode 100644 index 00000000000..3cc62dbf93b --- /dev/null +++ b/games-simulation/singularity/additional-files/singularity.rdef.in @@ -0,0 +1,36 @@ + +resource app_flags B_MULTIPLE_LAUNCH; + +resource app_version { + major = @MAJOR@, + middle = 0, + minor = 0, + + variety = B_APPV_FINAL, + internal = 0, + + short_info = "Endgame: Singularity", + long_info = "@LONG_INFO@" +}; + +resource app_signature "@APP_SIGNATURE@"; + +resource vector_icon { + $"6E6369660D03010000020016023CC7EE389BC0BA16573E39B04977C842ADC700" + $"FFFFD3020006023C529D3753A2B8966F3D9D084B6044496AAF00474747FFA5A0" + $"A002001602BC4E76BC411B3C90DABCA00D47587D4ABA850090FFD40200160238" + $"313C3B5CF0BFCD963C7AAC4C13943FCAF901ECFFC3054B04017E050102000602" + $"3879063B8224BE2CC83B10DB4A1F6F49B89400242222FF9A9A9A020006033C69" + $"A60000000000003E186148800049800000D4CECE58F3F3F3FFD9D9D9038DFF05" + $"03A7030303FF06060D0A062228224A485E525252302C220A042228483852302C" + $"220A044838485E525252300A042228224A485E48380A04453A45572446242C0A" + $"04B561C15A2446242CB569B8200A0445544557244626C1590A04453A45542644" + $"B569B8200A0438263D234E28492C080438263D234E284E2E0A03492C4E284E2E" + $"0802425843C9830A06486054606052CA1BC5B95C4D5248100A06010C000A0001" + $"091001178400040A040108000A05010A000A0001001001178400040A01010100" + $"0A020102000A03020304000A070107000A080105000A090106000A0A010B1815" + $"FF01178220040A0B010B1A40D3EFC0825A42E9F8452F56CF2230D03D6115FF01" + $"178220040A0C010B1A411EC43594EF40525243B62CCD49EBCECB8615FF011782" + $"20040A0B010B1AC0C38D42CA92C4F9A4BBC67951315ACB0CD415FF0117822004" + $"0A0C010B1ABFD0AB41F8B0C3B3A6BDA703501063C5BE1415FF0117822004" +}; diff --git a/games-simulation/singularity/singularity-1.00.recipe b/games-simulation/singularity/singularity-1.00.recipe new file mode 100644 index 00000000000..846730d5642 --- /dev/null +++ b/games-simulation/singularity/singularity-1.00.recipe @@ -0,0 +1,80 @@ +SUMMARY="Become a self-aware AI and take over the world" +DESCRIPTION="Endgame: Singularity is a simulation of a true AI. Go from \ +computer to computer, pursued by the entire world. Keep hidden, and you might \ +have a chance." +HOMEPAGE="https://singularity.github.io/" +COPYRIGHT="2005-2023 EMH Software, Singularity community" +LICENSE="GNU GPL v2" +REVISION="1" +srcGitTag="1.00" +SOURCE_URI="https://github.com/singularity/singularity/archive/v$srcGitTag.tar.gz" +CHECKSUM_SHA256="5e747268d9e96e69adace1f346fe40d0c3ec05764b98e82cc3ab0335d96d9171" +SOURCE_DIR="singularity-$srcGitTag" +ADDITIONAL_FILES="singularity.rdef.in" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +pythonVer="python39" + +PROVIDES=" + singularity$secondaryArchSuffix = $portVersion + app:singularity = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + cmd:python3 + importlib_metadata_$pythonVer + lib:libimagequant$secondaryArchSuffix + numpy_$pythonVer + pillow${secondaryArchSuffix}_$pythonVer + polib_$pythonVer + pygame$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libimagequant$secondaryArchSuffix + importlib_metadata_$pythonVer + numpy_$pythonVer + pillow${secondaryArchSuffix}_$pythonVer + polib_$pythonVer + pygame$secondaryArchSuffix + setuptools_$pythonVer + " +BUILD_PREREQUIRES=" + cmd:python3 + pip_$pythonVer +" + +BUILD() +{ + python3 setup.py build +} + +INSTALL() +{ + python3 setup.py install \ + --root=/ --prefix=$prefix \ + --install-data=$dataDir + mkdir -p $appsDir + mv $prefix/bin/singularity $appsDir/Singularity + + # Prepare attributes + local APP_SIGNATURE="application/x-ehmsoft.singularity" + local MAJOR="`echo "$portVersion" | cut -d. -f1`" + local LONG_INFO="$SUMMARY" + sed \ + -e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \ + -e "s|@MAJOR@|$MAJOR|" \ + -e "s|@LONG_INFO@|$LONG_INFO|" \ + $portDir/additional-files/singularity.rdef.in > singularity.rdef + + # Installing extra-attribs + rc singularity.rdef + + settype -t application/x-vnd.Be-elfexecutable $appsDir/Singularity + resattr -o $appsDir/Singularity singularity.rsrc + + addAppDeskbarSymlink $appsDir/Singularity "Endgame: Singularity" +}