# SliTaz package receipt.

PACKAGE="gnugo"
VERSION="3.8"
CATEGORY="games"
SHORT_DESC="A free program that plays the game of Go."
MAINTAINER="pascal.bellard@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.gnu.org/software/gnugo/"
WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
DEPENDS="ncurses"
BUILD_DEPENDS="ncurses-dev"
SUGGESTED="quarry"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure \
		--prefix=/usr \
		--libexecdir=/usr/lib \
		--infodir=/usr/share/info \
		--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
}