wok-current rev 16570
Up: childsplay (2.6.1)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri May 02 18:33:57 2014 +0200 (2014-05-02) |
parents | 2ecaec97cf82 |
children | fbb39f708ff6 |
files | childsplay/receipt childsplay/stuff/INSTALL.sh.patch |
line diff
1.1 --- a/childsplay/receipt Fri May 02 13:43:41 2014 +0200 1.2 +++ b/childsplay/receipt Fri May 02 18:33:57 2014 +0200 1.3 @@ -1,46 +1,30 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="childsplay" 1.7 -VERSION="1.6" 1.8 +VERSION="2.6.1" 1.9 CATEGORY="games" 1.10 SHORT_DESC="Python educational game." 1.11 MAINTAINER="claudinei@slitaz.org" 1.12 LICENSE="GPL3" 1.13 TARBALL="$PACKAGE-$VERSION.tgz" 1.14 WEB_SITE="http://www.schoolsplay.org/" 1.15 -WGET_URL="$SF_MIRROR/schoolsplay/$TARBALL" 1.16 +WGET_URL="http://download.savannah.gnu.org/releases/childsplay/$TARBALL" 1.17 1.18 DEPENDS="python pygtk python-pygame python-pysqlite python-sqlalchemy libogg" 1.19 -BUILD_DEPENDS="python-dev pygtk-dev python-pygame-dev libogg-dev" 1.20 1.21 # Rules to configure and make the package. 1.22 compile_rules() 1.23 { 1.24 - cd $src 1.25 - PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') 1.26 - sed -i \ 1.27 - -e "s|PREFIX = '/usr/local'|PREFIX = '$DESTDIR/usr'|" \ 1.28 - -e "s|get_python_lib()|'$DESTDIR', 'usr', 'lib', '$PYTHON_LIB', 'site-packages'|" \ 1.29 - -e "/key/s/raw_input/#raw_input/" $src/setup.py 1.30 - python setup.py install --root=$DESTDIR 1.31 + mkdir -p ${DESTDIR}/usr/share/${PACKAGE} 1.32 + cp -a ${src}/* ${DESTDIR}/usr/share/${PACKAGE} 1.33 + mv ${DESTDIR}/usr/share/${PACKAGE}/locale ${DESTDIR}/usr/share 1.34 + rm -rf ${DESTDIR}/usr/share/${PACKAGE}/po 1.35 } 1.36 1.37 # Rules to gen a SliTaz package suitable for Tazpkg. 1.38 genpkg_rules() 1.39 { 1.40 - PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') 1.41 - BASEPATHS="$install/usr/lib/$PYTHON_LIB/site-packages/childsplay_sp/SPBasePaths.py" 1.42 - 1.43 - sed -i "s|$install/|/|g" $BASEPATHS 1.44 - mkdir -p $fs/usr/share/locale 1.45 - 1.46 - cp -a $install/usr/bin $fs/usr 1.47 - cp -a $install/usr/lib $fs/usr 1.48 - cp -a $install/usr/share/childsplay_sp $fs/usr/share 1.49 - cp -a $install/usr/share/sp_alphabetsounds $fs/usr/share 1.50 - 1.51 - for lang in de en es fr pt_BR sv ru; do 1.52 - cp -a $install/usr/share/locale/$lang \ 1.53 - $fs/usr/share/locale 1.54 - done 1.55 + mkdir -p $fs/usr/games 1.56 + cp ${stuff}/${PACKAGE} $fs/usr/games 1.57 + cp -a ${install}/* ${fs} 1.58 }
2.1 --- a/childsplay/stuff/INSTALL.sh.patch Fri May 02 13:43:41 2014 +0200 2.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 2.3 @@ -1,123 +0,0 @@ 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/lib/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."