wok-6.x annotate cgames/receipt @ rev 14730
Up xorg-xf86-video-ati (7.1.0), xorg-xf86-video-fbdev (0.4.3), xorg-xf86-video-geode (2.11.14), xorg-xf86-video-i740 (1.3.4), xorg-xf86-video-neomagic (1.2.7), xorg-xf86-video-nv (2.1.20), xorg-xf86-video-s3 (0.6.5), xorg-xf86-video-trident (1.3.6), xorg-xf86-video-vesa (2.3.2), xorg-xf86-video-vmware (13.0.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jun 13 10:45:31 2013 +0200 (2013-06-13) |
parents | |
children | 00c51b3a010b |
rev | line source |
---|---|
pascal@9483 | 1 # SliTaz package receipt. |
pascal@9483 | 2 |
pascal@9483 | 3 PACKAGE="cgames" |
pascal@9483 | 4 VERSION="2.2" |
pascal@9483 | 5 CATEGORY="games" |
pascal@9483 | 6 SHORT_DESC="Games for the Linux Console." |
pascal@9483 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@9483 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@9483 | 9 WEB_SITE="http://www.muppetlabs.com/~breadbox/software/cgames.html" |
pascal@9483 | 10 WGET_URL="http://www.muppetlabs.com/~breadbox/pub/software/$TARBALL" |
pascal@9483 | 11 DEPENDS="ncurses" |
pascal@9483 | 12 BUILD_DEPENDS="ncurses-dev" |
pascal@9483 | 13 |
pascal@9483 | 14 # Rules to configure and make the package. |
pascal@9483 | 15 compile_rules() |
pascal@9483 | 16 { |
pascal@9483 | 17 cd $src |
pascal@9483 | 18 sed -i -e 's|install -.*\$|&(destdir)/$|' \ |
pascal@9483 | 19 -e "s|^prefix|destdir = $DESTDIR\\n&|" \ |
pascal@9483 | 20 -e 's/g games/g root/' */Makefile.in |
pascal@9483 | 21 sed -i 's/.* getline(.*/#define getline mygetline\n&/' */fileread.h |
pascal@9483 | 22 ./configure --prefix=/usr \ |
pascal@9483 | 23 --mandir=/usr/share/man \ |
pascal@9483 | 24 --datadir=/usr/share \ |
pascal@9483 | 25 --disable-mouse \ |
pascal@9483 | 26 --with-ncurses \ |
pascal@9483 | 27 $CONFIGURE_ARGS && |
pascal@9483 | 28 make && |
pascal@9483 | 29 make install |
pascal@9483 | 30 } |
pascal@9483 | 31 |
pascal@9483 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@9483 | 33 genpkg_rules() |
pascal@9483 | 34 { |
pascal@9483 | 35 mkdir -p $fs/usr/share |
pascal@9483 | 36 cp -a $_pkg/usr/games $fs/usr |
pascal@9483 | 37 cp -a $_pkg/usr/share/cblocks $fs/usr/share |
pascal@9483 | 38 cp -a $_pkg/usr/share/csokoban $fs/usr/share |
pascal@9483 | 39 } |
pascal@9483 | 40 |