wok view childsplay/receipt @ rev 6335

Up: firefox, firefox-dev, libfirefox to 3.6.10.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Sep 18 23:29:04 2010 +0000 (2010-09-18)
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 }