SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "bzflag"

# SliTaz package receipt.

PACKAGE="bzflag"
VERSION="2.4.18"
CATEGORY="games"
SHORT_DESC="A multiplayer 3D tank battle game."
MAINTAINER="slaxemulator@gmail.com"
LICENSE="LGPL2.1"
WEB_SITE="https://bzflag.org"

TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="c-ares curl gcc83-lib-base glew libsdl mesa"
BUILD_DEPENDS="c-ares-dev curl-dev gcc83 glew-dev libsdl-dev 
    mesa-dev util-linux-uuid-dev"

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

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's|uname -m|echo i486|' \
        package/Makefile*
#        src/other/glew/config/Makefile.linux

    export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -ltinfo"

    ./configure        \
        CC=gcc-83    \
        CXX=g++-83    \
        $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/bzflag    $fs/usr/share
}
6063 packages and 233209 files in current database (Sat Dec 21 00:00:03 2024)