SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "foobillard"

# SliTaz package receipt.

PACKAGE="foobillard"
VERSION="3.0a"
CATEGORY="games"
SHORT_DESC="An OpenGL billiard game for Linux."
MAINTAINER="slaxemulator@gmail.com"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://foobillard.sourceforge.net/"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="libsdl freetype libpng mesa libglu-mesa"
BUILD_DEPENDS="libsdl-dev freetype-dev libpng-dev libglu-mesa mesa-dev zlib-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/foobillard/files/FooBillard-Sources/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*/foobillard-||;s|.tar.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    sed -i -e 's/-lXaw//' -e 's/-lXi//' src/Makefile.in
    patch -p1 < $stuff/03_bugfixes
    patch -p1 < $stuff/05_foul_explanation
    patch -p1 < $stuff/06_show_ball_to_hit
    patch -p0 < $stuff/snooker_reset.patch
    patch -p0 < $stuff/snooker_draw.patch

    ./configure \
        --prefix=/usr \
        --enable-nvidia=no \
        --infodir=/usr/share/info \
        --mandir=/usr/share/man \
        $CONFIGURE_ARGS &&
    make && make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share
    cp -a $install/usr/bin $fs/usr
    cp -a $install/usr/share/foobillard $fs/usr/share
}

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