# HG changeset patch # User Pascal Bellard # Date 1260285622 -3600 # Node ID 2c916d19f52a365e4ae54844d4953ea5f5871c6e # Parent 226958e60b21e299789daf9357f233e0466c62d7 Add gnuchess diff -r 226958e60b21 -r 2c916d19f52a gnuchess/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gnuchess/receipt Tue Dec 08 16:20:22 2009 +0100 @@ -0,0 +1,34 @@ +# SliTaz package receipt. + +PACKAGE="gnuchess" +VERSION="5.07" +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 \ + --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() +{ + cp -a $_pkg/usr $fs +}