wok-current view childsplay/receipt @ rev 12535
rage: fix tarball
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Apr 26 02:14:50 2012 +0200 (2012-04-26) |
parents | d0fa681cee8d |
children | 5286a067ac76 |
line source
1 # SliTaz package receipt.
3 PACKAGE="childsplay"
4 VERSION="1.6"
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"
12 DEPENDS="python pygtk python-pygame python-pysqlite python-sqlalchemy libogg"
13 BUILD_DEPENDS="python-dev pygtk-dev python-pygame-dev libogg-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 \
21 -e "s|PREFIX = '/usr/local'|PREFIX = '$DESTDIR/usr'|" \
22 -e "s|get_python_lib()|'$DESTDIR', 'usr', 'lib', '$PYTHON_LIB', 'site-packages'|" \
23 -e "/key/s/raw_input/#raw_input/" $src/setup.py
24 python setup.py install --root=$DESTDIR
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
31 BASEPATHS="$install/usr/lib/$PYTHON_LIB/site-packages/childsplay_sp/SPBasePaths.py"
33 sed -i "s|$install/|/|g" $BASEPATHS
34 mkdir -p $fs/usr/share/locale
36 cp -a $install/usr/bin $fs/usr
37 cp -a $install/usr/lib $fs/usr
38 cp -a $install/usr/share/childsplay_sp $fs/usr/share
39 cp -a $install/usr/share/sp_alphabetsounds $fs/usr/share
41 for lang in de en es fr pt_BR sv ru; do
42 cp -a $install/usr/share/locale/$lang \
43 $fs/usr/share/locale
44 done
45 }