# SliTaz package receipt.

PACKAGE="mana"
VERSION="1.0.0-beta"
CATEGORY="games"
SHORT_DESC="A fully free and open source MMORPG game with the looks of old-fashioned 2D RPG"
MAINTAINER="devl547@gmail.com"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://themanaworld.org/"
WGET_URL="http://manasource.org/files/$TARBALL"
BUILD_DEPENDS="physfs-dev libxml2-dev libsdl-mixer-dev libsdl-image-dev \
libsdl-net-dev libsdl-ttf-dev libsdl-ttf curl-dev zlib-dev libpng-dev guichan-dev \
libsdl-gfx-dev enet"
DEPENDS="ttf-dejavu physfs libxml2 libsdl-mixer libsdl-image libsdl-net \
libsdl-ttf curl zlib libpng guichan libsdl-gfx"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure --prefix=/usr --without-opengl $CONFIGURE_ARGS &&
	make &&
	make DESTDIR=$PWD/_pkg install
}

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