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