# SliTaz package receipt.

PACKAGE="quarry"
VERSION="0.2.0"
CATEGORY="games"
SHORT_DESC="multi-purpose GUI for Go, Amazons and Reversi."
MAINTAINER="pascal.bellard@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://home.gna.org/quarry/"
WGET_URL="http://download.gna.org/$PACKAGE/$TARBALL"
DEPENDS="gtk+ librsvg libgsf xcb-util"
BUILD_DEPENDS="gtk+-dev librsvg-dev libgsf"
SUGGESTED="gnugo"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	sed -i 's/mozilla/firefox/' src/gui-gtk/gtk-help.c
	./configure \
		--prefix=/usr \
		--libexecdir=/usr/lib \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man \
		--enable-sgf-utils \
		$CONFIGURE_ARGS &&
	make &&
	make DESTDIR=$PWD/_pkg install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	cp -a $_pkg/usr $fs
}