SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "syasokoban"

# SliTaz package receipt.

PACKAGE="syasokoban"
VERSION="2.0.1"
CATEGORY="games"
SHORT_DESC="Sokoban clone."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2 BSD"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://grayskygames.com/sokoban.html"
WGET_URL="https://grayskygames.com/sokoban/$TARBALL"

DEPENDS="libsdl gcc-lib-base glibc-base"
BUILD_DEPENDS="libsdl-dev"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
    sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    if [ ! -f gcc44.u.done ]; then
        patch -p0 < $stuff/gcc44.u
        touch gcc44.u.done
    fi
    make
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/bin $fs/usr/share/syasokoban $fs/usr/share/applications
    cp -a $src/syasokoban $src/data $fs/usr/share/syasokoban
    cp -a $stuff/sokoban.desktop $fs/usr/share/applications
    cp -a $stuff/syasokoban $fs/usr/bin/syasokoban
}

6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)