wok-next view childsplay/receipt @ rev 3384
Ren: pypdf -> python-pypdf
author | Claudinei Pereira <claudinei@slitaz.org> |
---|---|
date | Thu Jun 11 23:07:48 2009 +0000 (2009-06-11) |
parents | 1254f8783b56 |
children | 9e422122e0bd |
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 pygame"
12 BUILD_DEPENDS="python python-dev pygame libSDL libSDL-dev libsdl-image \
13 libsdl-image-dev libsdl-mixer libsdl-mixer-dev libsdl-ttf libsdl-ttf-dev \
14 libsmpeg libsmpeg-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 patch -p1 -i ../stuff/INSTALL.sh.patch
21 sh INSTALL.sh
22 sed -i "s/\/usr\/local/\/usr/" $src/_pkg/usr/bin/childsplay
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr $fs/usr/share $fs/var
29 cp -a $_pkg/usr/bin $fs/usr
30 cp -a $_pkg/usr/lib $fs/usr
31 cp -a $_pkg/usr/share/assetml $fs/usr/share
32 cp -a $_pkg/usr/share/childsplay $fs/usr/share
33 cp -a $_pkg/var/games $fs/var
35 for lang in de es fr pt; do
36 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
37 cp -a $_pkg/usr/share/locale/$lang/LC_MESSAGES/childsplay.mo \
38 $fs/usr/share/locale/$lang/LC_MESSAGES
39 done
40 }
42 # Remove the score file generated and point it to /var/games
43 post_install ()
44 {
45 VARDIR="/var/games"
46 DATADIR="/usr/share/childsplay/Data"
47 SCOREFILE="childsplay.score"
48 if [ -f $VARDIR/$SCOREFILE ]
49 then
50 rm $DATADIR/$SCOREFILE
51 ln -s $VARDIR/$SCOREFILE $DATADIR/$SCOREFILE
52 fi
53 }