wok-next view childsplay/receipt @ rev 5017
clutter: nvidia is hardware-specific
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Mon Mar 01 08:35:46 2010 +0000 (2010-03-01) |
parents | d9184c7bd1de |
children | 38e09514ff35 |
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"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 sed -i "s|PREFIX = '/usr/local'|PREFIX = '_pkg/usr'|" $src/setup.py
20 sed -i \
21 "s|get_python_lib()|'_pkg', 'usr', 'lib', 'python2.5', 'site-packages'|" \
22 $src/setup.py
23 sed -i "/key/s/raw_input/#raw_input/" $src/setup.py
24 python setup.py install --root=$PWD/_pkg
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 BASEPATHS="$_pkg/usr/lib/python2.5/site-packages/childsplay_sp/SPBasePaths.py"
32 for file in `find $_pkg | grep 'pyc$'`; do
33 rm $file
34 done
36 sed -i "s|_pkg/|/|g" $BASEPATHS
38 mkdir -p $fs/usr/share
39 cp -a $_pkg/usr/bin $fs/usr
40 cp -a $_pkg/usr/lib $fs/usr
41 cp -a $_pkg/usr/share/childsplay_sp $fs/usr/share
42 cp -a $_pkg/usr/share/sp_alphabetsounds $fs/usr/share
44 for lang in de en es fr pt; do
45 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
46 cp -a $_pkg/usr/share/locale/$lang/LC_MESSAGES/childsplay_sp.mo \
47 $fs/usr/share/locale/$lang/LC_MESSAGES
48 done
49 }