wok-current view childsplay/receipt @ rev 3461

mirror-tools/search.cgi: add receipt object
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 16 09:22:41 2009 +0200 (2009-06-16)
parents a3f50ad7bac2
children d9184c7bd1de
line source
1 # SliTaz package receipt.
3 PACKAGE="childsplay"
4 VERSION="0.90.2"
5 CATEGORY="games"
6 SHORT_DESC="Python educational game."
7 MAINTAINER="claudinei@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tgz"
9 WEB_SITE="http://www.childschool.org"
10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
11 DEPENDS="python python-pygame"
12 BUILD_DEPENDS="python python-dev python-pygame libsdl libsdl-dev \
13 libsdl-image libsdl-image-dev libsdl-mixer libsdl-mixer-dev \
14 libsdl-ttf libsdl-ttf-dev libsmpeg libsmpeg-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 for i in INSTALL.sh.patch ; do
21 [ -f $i.done ] && continue
22 patch -p0 -i ../stuff/$i
23 touch $i.done
24 done
25 sh INSTALL.sh
26 sed -i "s/\/usr\/local/\/usr/" $src/_pkg/usr/bin/childsplay
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr $fs/usr/share $fs/var
33 cp -a $_pkg/usr/bin $fs/usr
34 cp -a $_pkg/usr/lib $fs/usr
35 cp -a $_pkg/usr/share/assetml $fs/usr/share
36 cp -a $_pkg/usr/share/childsplay $fs/usr/share
37 cp -a $_pkg/var/games $fs/var
39 for lang in de es fr pt; do
40 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
41 cp -a $_pkg/usr/share/locale/$lang/LC_MESSAGES/childsplay.mo \
42 $fs/usr/share/locale/$lang/LC_MESSAGES
43 done
44 }
46 # Remove the score file generated and point it to /var/games
47 post_install ()
48 {
49 VARDIR="/var/games"
50 DATADIR="/usr/share/childsplay/Data"
51 SCOREFILE="childsplay.score"
52 if [ -f $VARDIR/$SCOREFILE ]
53 then
54 rm $DATADIR/$SCOREFILE
55 ln -s $VARDIR/$SCOREFILE $DATADIR/$SCOREFILE
56 fi
57 }