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="5" 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" PATCHES="singularity-1.00.patchset" ADDITIONAL_FILES="singularity.rdef.in" ARCHITECTURES="any" pythonVersion=3.10 pythonPackage=python${pythonVersion//.} python=python$pythonVersion PROVIDES=" singularity = $portVersion app:singularity = $portVersion " if [ "$targetArchitecture" = x86_gcc2 ]; then # Previously, this package was built for archs "all !x86_gcc2" / "x86". REPLACES=" singularity_x86 " fi REQUIRES=" haiku numpy_$pythonPackage pygame_$pythonPackage cmd:python$pythonVersion " BUILD_REQUIRES=" setuptools_$pythonPackage " BUILD_PREREQUIRES=" cmd:python$pythonVersion " BUILD() { $python setup.py build } INSTALL() { $python 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 cp -r $sourceDir2/ $prefix/lib/$python/vendor-packages/singularity/music }