mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-19 02:00:06 +02:00
81 lines
2.1 KiB
Bash
81 lines
2.1 KiB
Bash
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="2"
|
|
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="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"
|
|
}
|