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="3" srcGitTag="1.00" musicVersion="007" SOURCE_URI="https://github.com/singularity/singularity/archive/v$portVersion.tar.gz" SOURCE_URI_2="https://www.emhsoft.com/singularity/endgame-singularity-music-$musicVersion.zip" CHECKSUM_SHA256="5e747268d9e96e69adace1f346fe40d0c3ec05764b98e82cc3ab0335d96d9171" CHECKSUM_SHA256_2="eb5a3c2730731fda0cc7861977cd97937950b85d3fe08bc431054a639cc2c26d" ADDITIONAL_FILES="singularity.rdef.in" ARCHITECTURES="all !x86_gcc2" SECONDARY_ARCHITECTURES="x86" pythonVer="python310" 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" # install music local pythonDir="python3.10" cp -r $sourceDir2/ $prefix/lib/$pythonDir/vendor-packages/singularity/music }