wok-current annotate cgames/receipt @ rev 13411

powertop: fix deps, bdeps & genpkg_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Oct 01 10:08:31 2012 +0200 (2012-10-01)
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