SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "prboom"

# SliTaz package receipt.

PACKAGE="prboom"
VERSION="2.5.0"
CATEGORY="games"
SHORT_DESC="PrBoom is the culmination of years of work by various people and projects on the Doom source code."
MAINTAINER="mallory@sweetpeople.org"
LICENSE="GPL2"
SUGGESTED="nvidia"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://prboom.sourceforge.net/"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="libsdl libsdl-mixer libsdl-net libpng mesa libglu-mesa freedoom"
BUILD_DEPENDS="libsdl-dev libsdl-mixer-dev libsdl-net-dev mesa-dev libglu-mesa \
libpng-dev"

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

# Rules to configure and make the package.
compile_rules()
{
    ./configure \
        --prefix=/usr \
        --infodir=/usr/share/info \
        --mandir=/usr/share/man \
        --disable-i386-asm \
        $CONFIGURE_ARGS &&
    make $MAKEFLAGS && make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    echo "Creating package tree"
    mkdir -p $fs/usr/games \
        $fs/usr/share/games \
        $fs/usr/share/applications \
        $fs/usr/share/pixmaps

    echo "Copying package files"
    cp -a $install/usr/games $fs/usr
    cp -a $install/usr/share/games $fs/usr/share
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)