# SliTaz package receipt.

PACKAGE="gnuchess"
VERSION="6.0.1"
CATEGORY="games"
SHORT_DESC="GNU Chess lets most modern computers play a full game of chess."
MAINTAINER="pascal.bellard@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.gnu.org/software/chess/chess.html"
WGET_URL="$GNU_MIRROR/chess/$TARBALL"
DEPENDS="ncurses readline"
BUILD_DEPENDS="ncurses-dev readline-dev"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	#find -name '*.c' | xargs sed -i 's/getline/get_line/g' src/common.h
	#sed -i 's/input_thread/static_input_thread/' src/input.c
	./configure \
		--libexecdir=/usr/lib \
		$CONFIGURE_ARGS &&
	make &&
	make -j1 install
}

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