wok-4.x rev 3340

Add: childsplay (0.90.2)
author Claudinei Pereira <claudinei@slitaz.org>
date Thu Jun 11 02:15:26 2009 +0000 (2009-06-11)
parents 61d9770b71c0
children cb584f8838ef
files childsplay/receipt childsplay/stuff/INSTALL.sh.patch childsplay/stuff/childsplay.desktop childsplay/stuff/childsplay.png
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/childsplay/receipt	Thu Jun 11 02:15:26 2009 +0000
     1.3 @@ -0,0 +1,40 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="childsplay"
     1.7 +VERSION="0.90.2"
     1.8 +CATEGORY="games"
     1.9 +SHORT_DESC="Python educational game."
    1.10 +MAINTAINER="claudinei@slitaz.org"
    1.11 +TARBALL="$PACKAGE-$VERSION.tgz"
    1.12 +WEB_SITE="http://www.childschool.org"
    1.13 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.14 +DEPENDS="python pygame"
    1.15 +BUILD_DEPENDS="python python-dev pygame libSDL libSDL-dev libsdl-image \
    1.16 +libsdl-image-dev libsdl-mixer libsdl-mixer-dev libsdl-ttf libsdl-ttf-dev \
    1.17 +libsmpeg libsmpeg-dev"
    1.18 +
    1.19 +# Rules to configure and make the package.
    1.20 +compile_rules()
    1.21 +{
    1.22 +	cd $src
    1.23 +	patch -p1 -i ../stuff/INSTALL.sh.patch	
    1.24 +	sh INSTALL.sh
    1.25 +	sed -i "s/\/usr\/local/\/usr/" $src/_pkg/usr/bin/childsplay
    1.26 +}
    1.27 +
    1.28 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.29 +genpkg_rules()
    1.30 +{
    1.31 +	mkdir -p $fs/usr $fs/usr/share $fs/var
    1.32 +	cp -a $_pkg/usr/bin $fs/usr
    1.33 +	cp -a $_pkg/usr/lib $fs/usr
    1.34 +	cp -a $_pkg/usr/share/assetml $fs/usr/share
    1.35 +	cp -a $_pkg/usr/share/childsplay $fs/usr/share
    1.36 +	cp -a $_pkg/var/games $fs/var
    1.37 +
    1.38 +	for lang in de es fr pt; do
    1.39 +		mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
    1.40 +		cp -a $_pkg/usr/share/locale/$lang/LC_MESSAGES/childsplay.mo \
    1.41 +			$fs/usr/share/locale/$lang/LC_MESSAGES
    1.42 +	done
    1.43 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/childsplay/stuff/INSTALL.sh.patch	Thu Jun 11 02:15:26 2009 +0000
     2.3 @@ -0,0 +1,123 @@
     2.4 +--- INSTALL.sh.orig	Thu Jan 17 14:38:56 2008
     2.5 ++++ INSTALL.sh	Thu Jun 11 00:48:25 2009
     2.6 +@@ -8,7 +8,7 @@
     2.7 + # However, you can change the "prefix" to "/usr" and childsplay will still
     2.8 + # work. Set it to anything else and your on your own.
     2.9 +   
    2.10 +-PREFIX=/usr/local
    2.11 ++PREFIX=$PWD/_pkg
    2.12 + 
    2.13 + #################################################################
    2.14 + # DON'T EDIT BEHIND THIS POINT 
    2.15 +@@ -20,16 +20,16 @@
    2.16 + 
    2.17 + PYTHON=`which python`
    2.18 + 
    2.19 +-EXECDIR=$PREFIX/bin
    2.20 +-LOCALEDIR=$PREFIX/share/locale
    2.21 +-ASSETMLDIR=/usr/share/assetml
    2.22 +-SCOREDIR=/var/games
    2.23 ++EXECDIR=$PREFIX/usr/bin
    2.24 ++LOCALEDIR=$PREFIX/usr/share/locale
    2.25 ++ASSETMLDIR=$PREFIX/usr/share/assetml
    2.26 ++SCOREDIR=$PREFIX/var/games
    2.27 + SCOREFILE=$SCOREDIR/childsplay.score
    2.28 +-DOCDIR=$PREFIX/share/doc/childsplay
    2.29 +-MANDIR=$PREFIX/man/man6
    2.30 +-CPDIR=$PREFIX/lib/games/childsplay
    2.31 +-SHAREDIR=$PREFIX/share/childsplay
    2.32 +-BINDIR=$PREFIX/games
    2.33 ++DOCDIR=$PREFIX/usr/share/doc/childsplay
    2.34 ++MANDIR=$PREFIX/usr/man/man6
    2.35 ++CPDIR=$PREFIX/usr/lib/games/childsplay
    2.36 ++SHAREDIR=$PREFIX/usr/share/childsplay
    2.37 ++BINDIR=$PREFIX/usr/games
    2.38 + LIBDIR=$CPDIR/lib
    2.39 + MODULESDIR=$LIBDIR
    2.40 + SHARELIBDATADIR=$SHAREDIR/lib
    2.41 +@@ -39,21 +39,21 @@
    2.42 + HOME_DIR_NAME=.childsplay
    2.43 + CHILDSPLAYRC=childsplayrc
    2.44 + 
    2.45 +-OLDCPDIR=$PREFIX/games/childsplay
    2.46 ++OLDCPDIR=$PREFIX/usr/games/childsplay
    2.47 + 
    2.48 + echo "Making directorys"
    2.49 +-mkdir -vp $CPDIR
    2.50 +-mkdir -vp $CPDIR/lib
    2.51 +-mkdir -vp $DOCDIR
    2.52 +-mkdir -vp $LOCALEDIR
    2.53 +-mkdir -vp $ASSETMLDIR
    2.54 +-mkdir -vp $SCOREDIR
    2.55 +-mkdir -vp $MANDIR
    2.56 +-mkdir -vp $SHAREDIR
    2.57 +-mkdir -vp $SHAREDATADIR
    2.58 +-mkdir -vp $SHARELIBDATADIR
    2.59 +-mkdir -vp $BINDIR
    2.60 +-mkdir -vp $EXECDIR
    2.61 ++mkdir -p $CPDIR
    2.62 ++mkdir -p $CPDIR/lib
    2.63 ++mkdir -p $DOCDIR
    2.64 ++mkdir -p $LOCALEDIR
    2.65 ++mkdir -p $ASSETMLDIR
    2.66 ++mkdir -p $SCOREDIR
    2.67 ++mkdir -p $MANDIR
    2.68 ++mkdir -p $SHAREDIR
    2.69 ++mkdir -p $SHAREDATADIR
    2.70 ++mkdir -p $SHARELIBDATADIR
    2.71 ++mkdir -p $BINDIR
    2.72 ++mkdir -p $EXECDIR
    2.73 + 
    2.74 + set -e
    2.75 + 
    2.76 +@@ -128,24 +128,24 @@
    2.77 + #    echo "found and removed"
    2.78 + #fi
    2.79 + 
    2.80 +-echo " Setting the base path in childsplay to $PREFIX"
    2.81 ++echo "Setting the base path in childsplay to /usr"
    2.82 + echo "## Automated file please do not edit" > $CPDIR/BASEPATH.py
    2.83 +-echo "BASEPATH=\"$PREFIX\"" >> $CPDIR/BASEPATH.py
    2.84 +-echo "EXECDIR=\"$EXECDIR\"" >> $CPDIR/BASEPATH.py
    2.85 +-echo "LOCALEDIR=\"$LOCALEDIR\"" >> $CPDIR/BASEPATH.py
    2.86 +-echo "ASSETMLDIR=\"$ASSETMLDIR\"" >> $CPDIR/BASEPATH.py
    2.87 +-echo "SCOREDIR=\"$SCOREDIR\"" >> $CPDIR/BASEPATH.py
    2.88 +-echo "SCOREFILE=\"$SCOREFILE\"" >> $CPDIR/BASEPATH.py
    2.89 +-echo "DOCDIR=\"$DOCDIR\"" >> $CPDIR/BASEPATH.py
    2.90 +-echo "MANDIR=\"$MANDIR\"" >> $CPDIR/BASEPATH.py
    2.91 +-echo "CPDIR=\"$CPDIR\"" >> $CPDIR/BASEPATH.py
    2.92 +-echo "SHAREDIR=\"$SHAREDIR\"" >> $CPDIR/BASEPATH.py
    2.93 +-echo "BINDIR=\"$BINDIR\"" >> $CPDIR/BASEPATH.py
    2.94 +-echo "LIBDIR=\"$LIBDIR\"" >> $CPDIR/BASEPATH.py
    2.95 +-echo "MODULESDIR=\"$MODULESDIR\"" >> $CPDIR/BASEPATH.py
    2.96 +-echo "SHARELIBDATADIR=\"$SHARELIBDATADIR\"" >> $CPDIR/BASEPATH.py
    2.97 +-echo "SHAREDATADIR=\"$SHAREDATADIR\"" >> $CPDIR/BASEPATH.py
    2.98 +-echo "RCDIR=\"$RCDIR\"" >> $CPDIR/BASEPATH.py
    2.99 ++echo "BASEPATH=\"/usr\"" >> $CPDIR/BASEPATH.py
   2.100 ++echo "EXECDIR=\"/usr/bin\"" >> $CPDIR/BASEPATH.py
   2.101 ++echo "LOCALEDIR=\"/usr/share/locale\"" >> $CPDIR/BASEPATH.py
   2.102 ++echo "ASSETMLDIR=\"/usr/share/assetml\"" >> $CPDIR/BASEPATH.py
   2.103 ++echo "SCOREDIR=\"/var/games\"" >> $CPDIR/BASEPATH.py
   2.104 ++echo "SCOREFILE=\"/var/games/childsplay.score\"" >> $CPDIR/BASEPATH.py
   2.105 ++echo "DOCDIR=\"/usr/share/doc/childsplay\"" >> $CPDIR/BASEPATH.py
   2.106 ++echo "MANDIR=\"/usr/man/man6\"" >> $CPDIR/BASEPATH.py
   2.107 ++echo "CPDIR=\"/usr/lib/games/childsplay\"" >> $CPDIR/BASEPATH.py
   2.108 ++echo "SHAREDIR=\"/usr/share/childsplay\"" >> $CPDIR/BASEPATH.py
   2.109 ++echo "BINDIR=\"/usr/games\"" >> $CPDIR/BASEPATH.py
   2.110 ++echo "LIBDIR=\"/usr/lib/games/childsplay/lib\"" >> $CPDIR/BASEPATH.py
   2.111 ++echo "MODULESDIR=\"/usr/lib/games/childsplay/lib\"" >> $CPDIR/BASEPATH.py
   2.112 ++echo "SHARELIBDATADIR=\"/usr/share/childsplay/lib\"" >> $CPDIR/BASEPATH.py
   2.113 ++echo "SHAREDATADIR=\"/usr/share/childsplay/Data\"" >> $CPDIR/BASEPATH.py
   2.114 ++echo "RCDIR=\"/usr/share/childsplay/Data/ConfigData\"" >> $CPDIR/BASEPATH.py
   2.115 + echo "CHILDSPLAYRC=\"$CHILDSPLAYRC\"" >> $CPDIR/BASEPATH.py
   2.116 + echo "HOME_DIR_NAME=\"$HOME_DIR_NAME\"" >> $CPDIR/BASEPATH.py
   2.117 + echo "" >> $CPDIR/BASEPATH.py
   2.118 +@@ -158,7 +158,7 @@
   2.119 + echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
   2.120 + echo " One thing left todo..."
   2.121 + echo " Translating words"
   2.122 +-$PYTHON $CPDIR/letters-trans.py $ASSETMLDIR
   2.123 ++$PYTHON $CPDIR/letters-trans.py $PREFIX/usr/share/assetml
   2.124 + echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
   2.125 + echo " Be sure to read the README-MEMORY file on how you can"
   2.126 + echo " use your own pictures in the memory game."
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/childsplay/stuff/childsplay.desktop	Thu Jun 11 02:15:26 2009 +0000
     3.3 @@ -0,0 +1,8 @@
     3.4 +[Desktop Entry]
     3.5 +Type=Application
     3.6 +Encoding=UTF-8
     3.7 +Name=Childsplay
     3.8 +Exec=childsplay
     3.9 +Icon=childsplay.png
    3.10 +Terminal=false
    3.11 +Categories=Application;Game;
     4.1 Binary file childsplay/stuff/childsplay.png has changed