wok-next diff childsplay/receipt @ rev 4504
linux: add floppy boot support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Nov 22 12:46:40 2009 +0100 (2009-11-22) |
parents | e8024c01fc47 |
children | f7e96b8e3444 |
line diff
1.1 --- a/childsplay/receipt Sat Jun 13 12:19:10 2009 +0200 1.2 +++ b/childsplay/receipt Sun Nov 22 12:46:40 2009 +0100 1.3 @@ -1,57 +1,48 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="childsplay" 1.7 -VERSION="0.90.2" 1.8 +VERSION="1.4" 1.9 CATEGORY="games" 1.10 SHORT_DESC="Python educational game." 1.11 MAINTAINER="claudinei@slitaz.org" 1.12 TARBALL="$PACKAGE-$VERSION.tgz" 1.13 -WEB_SITE="http://www.childschool.org" 1.14 -WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.15 -DEPENDS="python python-pygame" 1.16 -BUILD_DEPENDS="python python-dev python-pygame libsdl libsdl-dev \ 1.17 -libsdl-image libsdl-image-dev libsdl-mixer libsdl-mixer-dev \ 1.18 -libsdl-ttf libsdl-ttf-dev libsmpeg libsmpeg-dev" 1.19 +WEB_SITE="http://www.schoolsplay.org" 1.20 +WGET_URL="$SF_MIRROR/schoolsplay/$TARBALL" 1.21 +DEPENDS="python pygtk python-pygame python-pysqlite python-sqlalchemy libogg" 1.22 +BUILD_DEPENDS="python python-dev" 1.23 1.24 # Rules to configure and make the package. 1.25 compile_rules() 1.26 { 1.27 cd $src 1.28 - for i in INSTALL.sh.patch ; do 1.29 - [ -f $i.done ] && continue 1.30 - patch -p0 -i ../stuff/$i 1.31 - touch $i.done 1.32 - done 1.33 - sh INSTALL.sh 1.34 - sed -i "s/\/usr\/local/\/usr/" $src/_pkg/usr/bin/childsplay 1.35 + sed -i "s|PREFIX = '/usr/local'|PREFIX = '_pkg/usr'|" $src/setup.py 1.36 + sed -i \ 1.37 +"s|get_python_lib()|'_pkg', 'usr', 'lib', 'python2.5', 'site-packages'|" \ 1.38 +$src/setup.py 1.39 + sed -i "/key/s/raw_input/#raw_input/" $src/setup.py 1.40 + python setup.py install --root=$PWD/_pkg 1.41 } 1.42 1.43 # Rules to gen a SliTaz package suitable for Tazpkg. 1.44 genpkg_rules() 1.45 { 1.46 - mkdir -p $fs/usr $fs/usr/share $fs/var 1.47 + BASEPATHS="$_pkg/usr/lib/python2.5/site-packages/childsplay_sp/SPBasePaths.py" 1.48 + 1.49 + for file in `find $_pkg | grep 'pyc$'`; do 1.50 + rm $file 1.51 + done 1.52 + 1.53 + sed -i "s|_pkg/|/|g" $BASEPATHS 1.54 + 1.55 + mkdir -p $fs/usr/share 1.56 cp -a $_pkg/usr/bin $fs/usr 1.57 cp -a $_pkg/usr/lib $fs/usr 1.58 - cp -a $_pkg/usr/share/assetml $fs/usr/share 1.59 - cp -a $_pkg/usr/share/childsplay $fs/usr/share 1.60 - cp -a $_pkg/var/games $fs/var 1.61 + cp -a $_pkg/usr/share/childsplay_sp $fs/usr/share 1.62 + cp -a $_pkg/usr/share/sp_alphabetsounds $fs/usr/share 1.63 1.64 - for lang in de es fr pt; do 1.65 + for lang in de en es fr pt; do 1.66 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES 1.67 - cp -a $_pkg/usr/share/locale/$lang/LC_MESSAGES/childsplay.mo \ 1.68 + cp -a $_pkg/usr/share/locale/$lang/LC_MESSAGES/childsplay_sp.mo \ 1.69 $fs/usr/share/locale/$lang/LC_MESSAGES 1.70 done 1.71 } 1.72 - 1.73 -# Remove the score file generated and point it to /var/games 1.74 -post_install () 1.75 -{ 1.76 - VARDIR="/var/games" 1.77 - DATADIR="/usr/share/childsplay/Data" 1.78 - SCOREFILE="childsplay.score" 1.79 - if [ -f $VARDIR/$SCOREFILE ] 1.80 - then 1.81 - rm $DATADIR/$SCOREFILE 1.82 - ln -s $VARDIR/$SCOREFILE $DATADIR/$SCOREFILE 1.83 - fi 1.84 -}