wok-current annotate childsplay/receipt @ rev 3857
Up: childsplay (1.4) and remove old childsplay-* packages
author | Claudinei Pereira <claudinei@slitaz.org> |
---|---|
date | Fri Aug 07 16:17:45 2009 +0000 (2009-08-07) |
parents | e8024c01fc47 |
children | f7e96b8e3444 |
rev | line source |
---|---|
claudinei@3340 | 1 # SliTaz package receipt. |
claudinei@3340 | 2 |
claudinei@3340 | 3 PACKAGE="childsplay" |
claudinei@3857 | 4 VERSION="1.4" |
claudinei@3340 | 5 CATEGORY="games" |
claudinei@3340 | 6 SHORT_DESC="Python educational game." |
claudinei@3340 | 7 MAINTAINER="claudinei@slitaz.org" |
claudinei@3340 | 8 TARBALL="$PACKAGE-$VERSION.tgz" |
claudinei@3857 | 9 WEB_SITE="http://www.schoolsplay.org" |
claudinei@3857 | 10 WGET_URL="$SF_MIRROR/schoolsplay/$TARBALL" |
claudinei@3857 | 11 DEPENDS="python pygtk python-pygame python-pysqlite python-sqlalchemy libogg" |
claudinei@3857 | 12 BUILD_DEPENDS="python python-dev" |
claudinei@3340 | 13 |
claudinei@3340 | 14 # Rules to configure and make the package. |
claudinei@3340 | 15 compile_rules() |
claudinei@3340 | 16 { |
claudinei@3340 | 17 cd $src |
claudinei@3857 | 18 sed -i "s|PREFIX = '/usr/local'|PREFIX = '_pkg/usr'|" $src/setup.py |
claudinei@3857 | 19 sed -i \ |
claudinei@3857 | 20 "s|get_python_lib()|'_pkg', 'usr', 'lib', 'python2.5', 'site-packages'|" \ |
claudinei@3857 | 21 $src/setup.py |
claudinei@3857 | 22 sed -i "/key/s/raw_input/#raw_input/" $src/setup.py |
claudinei@3857 | 23 python setup.py install --root=$PWD/_pkg |
claudinei@3340 | 24 } |
claudinei@3340 | 25 |
claudinei@3340 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3340 | 27 genpkg_rules() |
claudinei@3340 | 28 { |
claudinei@3857 | 29 BASEPATHS="$_pkg/usr/lib/python2.5/site-packages/childsplay_sp/SPBasePaths.py" |
claudinei@3857 | 30 |
claudinei@3857 | 31 for file in `find $_pkg | grep 'pyc$'`; do |
claudinei@3857 | 32 rm $file |
claudinei@3857 | 33 done |
claudinei@3857 | 34 |
claudinei@3857 | 35 sed -i "s|_pkg/|/|g" $BASEPATHS |
claudinei@3857 | 36 |
claudinei@3857 | 37 mkdir -p $fs/usr/share |
claudinei@3340 | 38 cp -a $_pkg/usr/bin $fs/usr |
claudinei@3340 | 39 cp -a $_pkg/usr/lib $fs/usr |
claudinei@3857 | 40 cp -a $_pkg/usr/share/childsplay_sp $fs/usr/share |
claudinei@3857 | 41 cp -a $_pkg/usr/share/sp_alphabetsounds $fs/usr/share |
claudinei@3340 | 42 |
claudinei@3857 | 43 for lang in de en es fr pt; do |
claudinei@3340 | 44 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES |
claudinei@3857 | 45 cp -a $_pkg/usr/share/locale/$lang/LC_MESSAGES/childsplay_sp.mo \ |
claudinei@3340 | 46 $fs/usr/share/locale/$lang/LC_MESSAGES |
claudinei@3340 | 47 done |
claudinei@3340 | 48 } |