# SliTaz package receipt.

PACKAGE="lbreakout2"
VERSION="2.6beta-7"
CATEGORY="games"
SHORT_DESC="Breakout clone."
MAINTAINER="pascal.bellard@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://lgames.sourceforge.net/index.php?project=LBreakout2"
#WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
WGET_URL="http://prdownloads.sourceforge.net/lgames/$TARBALL"
DEPENDS="libpng libsdl libsdl-mixer  zlib"
BUILD_DEPENDS="libpng-dev libsdl-dev"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure --prefix=/usr --infodir=/usr/share/info \
	--disable-sdltest --mandir=/usr/share/man $CONFIGURE_ARGS &&
	make &&
	make DESTDIR=$PWD/_pkg install
}

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