wok-6.x rev 9483
Aadd cgames
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Apr 05 12:40:26 2011 +0200 (2011-04-05) |
parents | cded1de24adb |
children | 6b7888e601d8 |
files | cgames/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/cgames/receipt Tue Apr 05 12:40:26 2011 +0200 1.3 @@ -0,0 +1,40 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="cgames" 1.7 +VERSION="2.2" 1.8 +CATEGORY="games" 1.9 +SHORT_DESC="Games for the Linux Console." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.12 +WEB_SITE="http://www.muppetlabs.com/~breadbox/software/cgames.html" 1.13 +WGET_URL="http://www.muppetlabs.com/~breadbox/pub/software/$TARBALL" 1.14 +DEPENDS="ncurses" 1.15 +BUILD_DEPENDS="ncurses-dev" 1.16 + 1.17 +# Rules to configure and make the package. 1.18 +compile_rules() 1.19 +{ 1.20 + cd $src 1.21 + sed -i -e 's|install -.*\$|&(destdir)/$|' \ 1.22 + -e "s|^prefix|destdir = $DESTDIR\\n&|" \ 1.23 + -e 's/g games/g root/' */Makefile.in 1.24 + sed -i 's/.* getline(.*/#define getline mygetline\n&/' */fileread.h 1.25 + ./configure --prefix=/usr \ 1.26 + --mandir=/usr/share/man \ 1.27 + --datadir=/usr/share \ 1.28 + --disable-mouse \ 1.29 + --with-ncurses \ 1.30 + $CONFIGURE_ARGS && 1.31 + make && 1.32 + make install 1.33 +} 1.34 + 1.35 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.36 +genpkg_rules() 1.37 +{ 1.38 + mkdir -p $fs/usr/share 1.39 + cp -a $_pkg/usr/games $fs/usr 1.40 + cp -a $_pkg/usr/share/cblocks $fs/usr/share 1.41 + cp -a $_pkg/usr/share/csokoban $fs/usr/share 1.42 +} 1.43 +