wok view cgames/receipt @ rev 11390

Update BUILD_DEPENDS of slitaz-18n according co CORE_PKGS; ensure thoses are cooked before slitaz-18n
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sat Dec 10 05:08:01 2011 +0100 (2011-12-10)
parents
children 00c51b3a010b
line source
1 # SliTaz package receipt.
3 PACKAGE="cgames"
4 VERSION="2.2"
5 CATEGORY="games"
6 SHORT_DESC="Games for the Linux Console."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.muppetlabs.com/~breadbox/software/cgames.html"
10 WGET_URL="http://www.muppetlabs.com/~breadbox/pub/software/$TARBALL"
11 DEPENDS="ncurses"
12 BUILD_DEPENDS="ncurses-dev"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 sed -i -e 's|install -.*\$|&(destdir)/$|' \
19 -e "s|^prefix|destdir = $DESTDIR\\n&|" \
20 -e 's/g games/g root/' */Makefile.in
21 sed -i 's/.* getline(.*/#define getline mygetline\n&/' */fileread.h
22 ./configure --prefix=/usr \
23 --mandir=/usr/share/man \
24 --datadir=/usr/share \
25 --disable-mouse \
26 --with-ncurses \
27 $CONFIGURE_ARGS &&
28 make &&
29 make install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/share
36 cp -a $_pkg/usr/games $fs/usr
37 cp -a $_pkg/usr/share/cblocks $fs/usr/share
38 cp -a $_pkg/usr/share/csokoban $fs/usr/share
39 }