# HG changeset patch # User Pascal Bellard # Date 1302000026 -7200 # Node ID d6678fe90ec928461602f4f5bc4381a46a7af163 # Parent cded1de24adb21c40909952ae565640f6597011e Aadd cgames diff -r cded1de24adb -r d6678fe90ec9 cgames/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cgames/receipt Tue Apr 05 12:40:26 2011 +0200 @@ -0,0 +1,40 @@ +# SliTaz package receipt. + +PACKAGE="cgames" +VERSION="2.2" +CATEGORY="games" +SHORT_DESC="Games for the Linux Console." +MAINTAINER="pascal.bellard@slitaz.org" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://www.muppetlabs.com/~breadbox/software/cgames.html" +WGET_URL="http://www.muppetlabs.com/~breadbox/pub/software/$TARBALL" +DEPENDS="ncurses" +BUILD_DEPENDS="ncurses-dev" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + sed -i -e 's|install -.*\$|&(destdir)/$|' \ + -e "s|^prefix|destdir = $DESTDIR\\n&|" \ + -e 's/g games/g root/' */Makefile.in + sed -i 's/.* getline(.*/#define getline mygetline\n&/' */fileread.h + ./configure --prefix=/usr \ + --mandir=/usr/share/man \ + --datadir=/usr/share \ + --disable-mouse \ + --with-ncurses \ + $CONFIGURE_ARGS && + make && + make install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share + cp -a $_pkg/usr/games $fs/usr + cp -a $_pkg/usr/share/cblocks $fs/usr/share + cp -a $_pkg/usr/share/csokoban $fs/usr/share +} +