SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "bastet"

# SliTaz package receipt.

PACKAGE="bastet"
VERSION="0.43.2"
CATEGORY="games"
TAGS="tetris"
SHORT_DESC="Bastard tetris clone."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL3"
WEB_SITE="http://fph.altervista.org/prog/bastet.html"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/fph/bastet/archive/$VERSION.tar.gz"

DEPENDS="gcc-lib-base glibc-base libboost-program-options libtinfo ncurses"
BUILD_DEPENDS="libboost-dev libboost-program-options-dev libboost-tr1-dev 
    ncurses-dev "

GENERIC_MENUS="no"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    cp -a $stuff/bastet*    $src
    patch -p1 -i $stuff/install.patch
    sed -i    -e 's|tr1/tr1/unordered_set|unordered_set.hpp|' \
        -e '/#include <set>/d' -e 's|std::tr1::|boost::|' \
        BastetBlockChooser.hpp

    make 2>/dev/null &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_files bastet
    cook_copy_icons
    cp -a $install/var    $fs
}
5935 packages and 845883 files in cooking database (Thu Jun 27 00:01:54 2024)