SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "singularity"

# SliTaz package receipt.

PACKAGE="singularity"
VERSION="0.30c"
CATEGORY="games"
SHORT_DESC="Strategy game - simulation of true Al"
MAINTAINER="slaxemulator@gmail.com"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION-src.tar.gz"
WEB_SITE="http://emhsoft.com/singularity/index.html"
WGET_URL="https://github.com/singularity/singularity/archive/refs/tags/v$VERSION.tar.gz"

DEPENDS="python python-pygame libsdl-image libsdl-mixer python-numpy"
BUILD_DEPENDS="patch"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE 2>/dev/null | \
    sed '/singularity-/!d;s|.*singularity-||;s|.tar.*||;q'
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/bin $fs/usr/games/singularity
    cp -a $src/singularity.py $fs/usr/games/singularity
    cat >> $fs/usr/bin/singularity <<EOT
#!/bin/sh
cd /usr/games/singularity
exec python singularity.py "$@"
EOT
    chmod +x $fs/usr/bin/singularity
    cp -a $src/code $src/data $fs/usr/games/singularity
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)