wok-next view childsplay/receipt @ rev 7360

Changed WGET_URL path in libjpeg62 receipt so it works.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Nov 23 02:05:26 2010 +0000 (2010-11-23)
parents 5921dc28d8c6
children cc669956b01c
line source
1 # SliTaz package receipt.
3 PACKAGE="childsplay"
4 VERSION="1.5.1"
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 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
20 sed -i "s|PREFIX = '/usr/local'|PREFIX = '_pkg/usr'|" $src/setup.py
21 sed -i \
22 "s|get_python_lib()|'_pkg', 'usr', 'lib', '$PYTHON_LIB', 'site-packages'|" \
23 $src/setup.py
24 sed -i "/key/s/raw_input/#raw_input/" $src/setup.py
25 python setup.py install --root=$PWD/_pkg
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 BASEPATHS="$_pkg/usr/lib/$PYTHON_LIB/site-packages/childsplay_sp/SPBasePaths.py"
33 for file in `find $_pkg | grep 'pyc$'`; do
34 rm $file
35 done
37 sed -i "s|_pkg/|/|g" $BASEPATHS
39 mkdir -p $fs/usr/share
40 cp -a $_pkg/usr/bin $fs/usr
41 cp -a $_pkg/usr/lib $fs/usr
42 cp -a $_pkg/usr/share/childsplay_sp $fs/usr/share
43 cp -a $_pkg/usr/share/sp_alphabetsounds $fs/usr/share
45 for lang in de en es fr pt; do
46 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
47 cp -a $_pkg/usr/share/locale/$lang/LC_MESSAGES/childsplay_sp.mo \
48 $fs/usr/share/locale/$lang/LC_MESSAGES
49 done
50 }